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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass max of quey value into variable

Status
Not open for further replies.

Frank72

Technical User
Nov 13, 2001
57
IE
Hows it going

I'm trying to pass the result of a max of query into a variable i have tried using.. variable = [queryName]![MaxOfFieldName]
but this isnt working
any ideas?
much appreciated

frank
 
Try using the DMax function...

variable = DMax("[FieldName]", "[QueryName]")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top