SmokeEater
Technical User
I have created this function
I get an object required error with it. How do I properly reference the form object?
Code:
Function Shopex_ind(myForm)
On Error GoTo Err_Shopex_ind
Dim Shopex
Shopex = ""
If myForm![Shop1] = -1 Then
Shopex = 1
myForm![Shop1Label].BackColor = 65280
myForm![Shop 01] = 1
Else
myForm![Shop1Label].BackColor = 255
myForm![Shop 01] = 0
End If
Shopex_ind = Shopex
Exit_Shopex_ind:
Exit Function
Err_Shopex_ind:
MsgBox Err.Description
Resume Exit_Shopex_ind
End Function
I get an object required error with it. How do I properly reference the form object?