Do they need to know the calculated value at the outset? I would think that is key.![]()
Do they need to know the calculated value at the outset? I would think that is key.![]()
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
I cannot get that to work.
If the variable is long I get sql1, if I remove the quotes I get sql 2, and if I change the variable to an object I get sql3
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
What was your solution?
Did you see the posts that suggested using DMax()?
Arvil, did you test your suggestion? Works for you?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I would have thought the correct syntax would be
NextAppID = currentdb.openrecordset("SELECT TOP 1 ApplID FROM tblApplicant ORDER BY ApplID DESC")(0) + 1