B Bosch Registered User. Local time Yesterday, 22:31 Joined May 13, 2005 Messages 89 May 27, 2005 #1 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
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
neileg AWF VIP Local time Today, 06:31 Joined Dec 4, 2002 Messages 5,975 May 31, 2005 #2 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.
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.
WindSailor Registered User. Local time Yesterday, 22:31 Joined Oct 29, 2003 Messages 239 May 31, 2005 #3 Or... Dim MyTempVariable as Integer MyTempVariable = Max(column1) 'Or MyTempVariable = Val (Max(column1)) Thats if Max(column1) returns an actual value
Or... Dim MyTempVariable as Integer MyTempVariable = Max(column1) 'Or MyTempVariable = Val (Max(column1)) Thats if Max(column1) returns an actual value
B Bosch Registered User. Local time Yesterday, 22:31 Joined May 13, 2005 Messages 89 May 31, 2005 #4 Thanks everyone for your responses. Do I have define a recordset to do that? Thanks