R
Ryis
Hello, I have a click event that references a function in a module, but
everytime i use it i get the following error
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired.
Below is the code
Function TRAININGRECORD()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TRAINING FORM"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Function
any help would be appreciated on this
Thanks
Ryan
everytime i use it i get the following error
This error occurs when an event has failed to run because Microsoft Office
Access cannot evaluate the location of the logic for the event. For example,
if the OnOpen property of a form is set to =[Field], this error occurs
because Access expects a macro or event name to run when the event is fired.
Below is the code
Function TRAININGRECORD()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TRAINING FORM"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Function
any help would be appreciated on this
Thanks
Ryan