R
Richard
Hi all,
I have some code that I want to share between various forms. My code looks
like this in a single form:
If Me!txtRef = "" Then
Exit Sub
End If
Where txtRef is a text box value entered by users
So I created a public procedure
Public Sub TestRef (ByVal FormName as Form)
If FormName!txtRef = "" Then
Exit Sub
End If
End sub
Then from my form frmTest I created an on click event: Call TestRef(frmTest)
I receive a 424 execution error, Object required.
What's wrong with this ?
Thanks for your help
Richard
I have some code that I want to share between various forms. My code looks
like this in a single form:
If Me!txtRef = "" Then
Exit Sub
End If
Where txtRef is a text box value entered by users
So I created a public procedure
Public Sub TestRef (ByVal FormName as Form)
If FormName!txtRef = "" Then
Exit Sub
End If
End sub
Then from my form frmTest I created an on click event: Call TestRef(frmTest)
I receive a 424 execution error, Object required.
What's wrong with this ?
Thanks for your help
Richard