I have two forms:
1. frm_ACCT has txtPAY and a Checkbox Y/N that is checked ☑ (Y) whenever a payment received
2. frm_Recvd has a command button btn_PmtRecvd. Btn_PmtRecvd is visible when form opens. I want to make Btn_PmtRecvd not visible when or if frm_ACCT Checkbox isn't checked.
My code:
In the On Load event of frm_Recvd[COLOR=var(--highlight-keyword)]
if forms!frm_ACCT.Checkbox = -1 Then
Btn_PmtRecvd.Visible = True
Else
Btn_PmtRecvd .Visible =False
End If
I hope you can review and tell me what I am doing wrong. Every suggestion would be appreciated.[/COLOR]