MS Access 2007 - Want Variable to display in Message Box
Posted on 2011-09-08
I have some simple code In which I want a variable to display in a message box.
Even though I copied some sample code it still does not work.
Here is the code:
Dim LValue As String
LValue = Now
MsgBox "The current Time is: " & LValue & " Have a Good Day"
Note: This uses a Now function to put a time value into the variable. Also, I have tried to put regular string text into the variable and that doesn¿t display either.
Thanks for any help.