Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Afterupdate

$
0
0
Hi Dears,
I want to to make a field invisible in a form after a combobox update based on the data in the combobox.
If movement is inward Payable amount and beneficiary name should be invisible and if it's outward receivable amount and applicant name should be invisible

I made the following code
Private Sub Movement_AfterUpdate()
If Movement.Value = "Inward" Then
Me.Payable_Amount.Visible = False
Me.Beneficiary_Name.Visible = False
Me.Receivable_Amount.Visible = True
Me.Applicant_Name.Visible = True
Else
Me.Payable_Amount.Visible = True
Me.Beneficiary_Name.Visible = True
Me.Receivable_Amount.Visible = False
Me.Applicant_Name.Visible = False
End If
End Sub

It works but the problem is the changes (visibility) is applied to all records in the form. How can I solve this?

Thanks

Viewing all articles
Browse latest Browse all 13329

Trending Articles