How to tempararily store a column value in a variable

Bosch

Registered User.
Local time
Yesterday, 22:31
Joined
May 13, 2005
Messages
89
I need to get Max(column1) from a table and store in a variable temporarily.
How can I do that without having to create a control(TextBox) ?

Thanks
Bosch
 
If you don't want the text box to appear on the form you can make it invisible but still use it in your code.
 
Or...

Dim MyTempVariable as Integer
MyTempVariable = Max(column1) 'Or MyTempVariable = Val (Max(column1))


Thats if Max(column1) returns an actual value
 
Thanks everyone for your responses.
Do I have define a recordset to do that?

Thanks
 

Users who are viewing this thread

Back
Top Bottom