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

Variable in DMax 1

Status
Not open for further replies.

ohmbru

Technical User
Jul 13, 2001
161
US
I am having trouble with the variable at the end of this line:

intCheckAppr = DMax("[tblCheckApprSum]![TotalChkApp]", "[tblCheckApprSum]", "[tblCheckApprSum]![operator]= " & strCSR)

I think I am not properly closing. It works fine when I hard code it or reference the value from a form.



Brian
 
I suspect that the value of strCSR needs to be enclosed in quotes. Try this

intCheckAppr = DMax("[tblCheckApprSum]![TotalChkApp]", "[tblCheckApprSum]", "[tblCheckApprSum]![operator]= """ & strCSR & """")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top