Guest_imported
New member
- Jan 1, 1970
- 0
How could I place the result of a SQL query/statement to a variable by using VBA?
The sql statement would be something like this:
And the variable.. :
I would be very grateful if somebody could help me with this.
The sql statement would be something like this:
Code:
SELECT Max([Field2]) AS MaxValue
FROM Table1
WHERE Field1 = 'match';
And the variable.. :
Code:
Dim varResult As Variant
I would be very grateful if somebody could help me with this.