Re: Populate a field by query
- From: John W. Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 06 Jan 2008 20:24:17 -0700
On Sun, 6 Jan 2008 18:39:00 -0800, Matt <Matt@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
"John W. Vinson" wrote:
Just put Ascending on the date/time field's Sort row in the query grid.Already done!
<puzzlement> so is it not working?
One last thing regarding this box if I may...... Is there a way to not show
duplicate calls?
Set the Unique Values property of the query to Yes. Perhaps you could post the
SQL view of the query, indicate what it's showing, and what you want it to
show.
sql view:
SELECT DISTINCT [Call] & IIf([Mobile],"/m","") & IIf([check]," - check","")
AS ShowCall
FROM net
WHERE ((([Call] & IIf([Mobile],"/m","") & IIf([check]," -
check",""))>=Date()))
ORDER BY net.time DESC;
It was working now I am getting an error #3093. As you saw I posted last
night at 3am. Wasn't really clear headed <grin>. I am showing calls from a
couple days ago when I started this. Maybe I need to step back and look at
it from the beginning.
You're comparing the call letters to today's date... apples to bicycles, not
just apples to oranges!
The WHERE clause should be something like
WHERE net.[time] >= Date()
and should not refer to the Call calculated field at all.
If you're using it for a combo box, do you really want the rows sorted by the
time that the call came in? Maybe you need to sort by the Call field instead.
John W. Vinson [MVP]
.
- References:
- Re: Populate a field by query
- From: John W . Vinson
- Re: Populate a field by query
- From: Matt
- Re: Populate a field by query
- From: John W . Vinson
- Re: Populate a field by query
- From: Matt
- Re: Populate a field by query
- From: John W . Vinson
- Re: Populate a field by query
- From: John W . Vinson
- Re: Populate a field by query
- Prev by Date: Re: ranking the records
- Next by Date: Re: Complex (for me) IIf query
- Previous by thread: Re: Populate a field by query
- Next by thread: Re: CheckBox for data criteria
- Index(es):
Relevant Pages
|