Hi,
I cant get the correct syntax to use two variables in my code. I keep getting you canceled the previous operation!
With one variable i have:
Dim MyNum, MyState, MyLob
MyState = "AL"
MyLob = "CA"
MyNum = DMax("[AutoNo]", "tblMinRate", "[State] = " & "'AL'")
MsgBox MyNum
How do I add MyLob at the end of this? I have tried several ways and can't find anything in search for two variables.
Thanks
Lisa
I cant get the correct syntax to use two variables in my code. I keep getting you canceled the previous operation!
With one variable i have:
Dim MyNum, MyState, MyLob
MyState = "AL"
MyLob = "CA"
MyNum = DMax("[AutoNo]", "tblMinRate", "[State] = " & "'AL'")
MsgBox MyNum
How do I add MyLob at the end of this? I have tried several ways and can't find anything in search for two variables.
Thanks
Lisa