Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting the result of a query in a textbox

Status
Not open for further replies.

gmeunier

Programmer
Nov 6, 2000
9
FR
Dear all,

I have a table with 2 important fields :
COD_AE which is an ID number
COT_DATE which is a date
There can be several date by ID. There can not be the same ID with the same date twice.

My query asks for the latest date for one single ID.
I want that date to populate a textbox.

Has someone an idea?

Thanks in advance,

Gerald

 
You can use the DMax to pull what you're looking for like so:

=DMax("[COT_DATE],"MyQueryName","[COD_AE]=[COD_AE]")

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top