demicay2669
Registered User.
- Local time
- Today, 00:29
- Joined
- Aug 22, 2013
- Messages
- 39
I'm trying to setup a Macro for two Checkboxes in my Web Database, so that when one of them is checked two other fields become come visible for input.
I have ckbCustomer and ckbSupplier. I want ckbCustomer to make text box CustName and CustID visible and ckbSupplier to make text box SupplierName and SupplierID visible when checked.
I found this code thanks to BaldyWeb.com
This is the way I put the above code into my macro.
I get an error MS Access cannot find the Name 'Me' you entered in the expression. And if I take the 'Me' off it says the same thing but just 'ckbCustomer' instead of 'Me'. My database is attached.
I'm not sure what I have done wrong. Any help would be much appreciated.
I have ckbCustomer and ckbSupplier. I want ckbCustomer to make text box CustName and CustID visible and ckbSupplier to make text box SupplierName and SupplierID visible when checked.
I found this code thanks to BaldyWeb.com
Code:
[FONT=Arial]
If Me.ControlName = "Whatever" Then
Me.OtherControlName.Visible = True
Else
Me.OtherControlName.Visible = False
End If
[/FONT]
This is the way I put the above code into my macro.
Code:
If [Me].[ckbCustomer]=True
SetProperty CustName.Visible=True
Else
CustName.Visible=False
End IF
I get an error MS Access cannot find the Name 'Me' you entered in the expression. And if I take the 'Me' off it says the same thing but just 'ckbCustomer' instead of 'Me'. My database is attached.
I'm not sure what I have done wrong. Any help would be much appreciated.