How do I run a query from a VBA editor window in Access?
2 answers
If you just want to get the maximum value, DMax-Function should do the trick:
myVariable = DMax("fee", "courses", "region = 'UK'")
(matches SELECT MAX(fee) FROM courses WHERE region = 'UK'
).
+4
a source to share