Query & Textbox

brucey54

Registered User.
Local time
Today, 10:54
Joined
Jun 18, 2012
Messages
155
Hi folks, quick question I have textbox on a form.
I also have a query that displays a date, I would like this date to be displayed within the textbox, not sure how to do this, thanks in advance.
 
This is the code I have so far, tying to find the max date

=DCount("[MealDate]","Qry_2_DateNewPatients"='MAX'

not working
 
Code still not working

=DCount("[MealDate]","Qry_2_DateNewPatients"='DMAX')
 
Code still not working

=DCount("*","Qry_2_DateNewPatients","[MealDate] = " & Format([txtCusDate],"\#dd\/mm\/yyyy\#"))
 
it's ok folks got it to work

=DLookUp("[MealDate]","Qry_2_DateNewPatients")
 

Users who are viewing this thread

Back
Top Bottom