Hi
Have an issue with an error
I created a public variable
Code:
Option Compare Database
Option Explicit
Public varGraveNo As String
thats everything in the vb window no other entry and I'm reasonable sure it's in a standard module but I've posted a screen shot.
I Have a form with an unbound text box is named GraveNo
In the afterupdate event of the text box I added this code:
Code:
=[varGraveNo]=[Me].[GraveNo]
which I assumed would set up the variable
On the form I have a button which will open another form based on a query which will use the variable as a filter.
But when I enter a number in the text box and press my button the following appears:
The expression After Update you entered as the event property setting produced the following error: The object does not contain the Automation object 'varGraveNo'
I've done a google search for help but despite much reading have come up with nothing
Has anyone any ideas?
thanks
Ian