In VBA we need only the = sign to assign a value to a simple variable.
[vba]strFoo = "bar"[/vba] But assigning to an object variable also requires the Set keyword:
[vba]Set myDataBase = CurrentDb.OpenRecordset(sqlQuery2)[/vba]
In VBA we need only the = sign to assign a value to a simple variable.
[vba]strFoo = "bar"[/vba] But assigning to an object variable also requires the Set keyword:
[vba]Set myDataBase = CurrentDb.OpenRecordset(sqlQuery2)[/vba]
Ah, right, that's fair enough then.But assigning to an object variable also requires the Set keyword:
VBA:
Set myDataBase = CurrentDb.OpenRecordset(sqlQuery2)VBA tags courtesy of www.thecodenet.com
Does VBA also have object variables for the simple variables, for complex operations ?
(for example, like the java Integer object which you have to use for methods like ParseInt() )
I will guess the answer is no. But I should defer to some who knows Java.Originally Posted by Frenchy646