Max value (1 Viewer)

Super Suarez

Registered User.
Local time
Today, 00:06
Joined
Jul 10, 2013
Messages
36
Hi

I'm trying to do a sect statement and put it in a variable which i can then output to a text box. How do I get the value into a variable? I can't seem to get my syntax right

this is what I currently have


Maxvalue = "SELECT MAX[Record Num]FROM Joblog"
 

Mihail

Registered User.
Local time
Today, 10:06
Joined
Jan 22, 2011
Messages
2,373
Use DMax() function for that.
MaxValue = DMax("Record Num", "Joblog")
Hope that you will have not troubles with that space in the field name. Why you not use RecordNum as name ?
 

Super Suarez

Registered User.
Local time
Today, 00:06
Joined
Jul 10, 2013
Messages
36
Thanks,

This is how it worked for me:-

MaxValue = DMax("[Record Num]", "Joblog")
 

Users who are viewing this thread

Top Bottom