I am still finding my way around Access 2002 (slowly). I've discovered the immediate window. I assume that any code typed in here, assuming the syntax is correct, will work.
Can anyone explain why when I typed:
? 1+1 (and enter) I got the right answer without any problem.
BUT when I typed:
x=msgbox ("Cold potatoes aren't hot!") (enter) I got a message telling me that my sytax was wrong. I then quit not saving anything and then reloaded the database and retyped the message and the box displayed the message.
I seem to have compilation errors regularly, with code I have been given by the good people of this forum. Is there a setting that I need to look at or anything else? Any thoughts?
Ro
Can anyone explain why when I typed:
? 1+1 (and enter) I got the right answer without any problem.
BUT when I typed:
x=msgbox ("Cold potatoes aren't hot!") (enter) I got a message telling me that my sytax was wrong. I then quit not saving anything and then reloaded the database and retyped the message and the box displayed the message.
I seem to have compilation errors regularly, with code I have been given by the good people of this forum. Is there a setting that I need to look at or anything else? Any thoughts?
Ro