I have a button for a search form I made and I am very VERY new to writing in VB. In the “On Click” event procedure, I want to do an If Then Else statement, like this:
If [FormType] = “Back Office” then OPEN frm Main
Else
If [FormType] = “Accounts Payable” then OPEN frmAccounts Payable
Else
If [FormType] = “Assets” then OPEN frmAssets
FormType is a field in my table and frmMain, frmAccounts Payable and frmAssets are all different forms that update that table upon data entry.
I am not sure how to write this in VB… Can someone please help! Thanks in advance!
Melissa
If [FormType] = “Back Office” then OPEN frm Main
Else
If [FormType] = “Accounts Payable” then OPEN frmAccounts Payable
Else
If [FormType] = “Assets” then OPEN frmAssets
FormType is a field in my table and frmMain, frmAccounts Payable and frmAssets are all different forms that update that table upon data entry.
I am not sure how to write this in VB… Can someone please help! Thanks in advance!
Melissa