I created a subform and w/in my subform is a frame with 4 radio options (Apple, Orange, Grape, Banana). The purpose of this frame is when the user select a certain fruit, it populates the shopper ID and the current date into the field. And I use the following code:
Private Sub fraResultOpt_Click()
userID = Environ("username"
DateTested = Date
End Sub
But when I test it, it gave me the following error message:
A problem occurred while MSAccess was communicating with the OLE server or ActiveX Control.
* The expression may not result in the name of a macro, the anme of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function, event, or macro.
I even double check the name to see if it is spelled correctly, and it is. So I'm not sure why I'm getting this error. Please help.
-thank you.
Private Sub fraResultOpt_Click()
userID = Environ("username"
DateTested = Date
End Sub
But when I test it, it gave me the following error message:
A problem occurred while MSAccess was communicating with the OLE server or ActiveX Control.
* The expression may not result in the name of a macro, the anme of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function, event, or macro.
I even double check the name to see if it is spelled correctly, and it is. So I'm not sure why I'm getting this error. Please help.
-thank you.