B
bw
I have a form "Profile" which has a command button that sends user to
another form "Modules" (the command button is the only way for the user to
get to the form "Modules").
I have an After Update event procedure that includes the following:
X = DLookup("BankName", "qryLookup", "BankName = '" & [BankName] &
"'")
If IsNull(X) Then...show and error message.
Problem:
Whenever the user clicks on the command button, I want to execute the code
for the After Update event (even though the record may not have been
updated), and If IsNull(X) then show the error message, but DON'T go to the
form "Modules".
Questions:
Which Event do I use for this? Do I simply move the After Update event
procedure code to this new event?
How do I stop the command button from going to the "Modules" form?
Thanks,
Bernie
another form "Modules" (the command button is the only way for the user to
get to the form "Modules").
I have an After Update event procedure that includes the following:
X = DLookup("BankName", "qryLookup", "BankName = '" & [BankName] &
"'")
If IsNull(X) Then...show and error message.
Problem:
Whenever the user clicks on the command button, I want to execute the code
for the After Update event (even though the record may not have been
updated), and If IsNull(X) then show the error message, but DON'T go to the
form "Modules".
Questions:
Which Event do I use for this? Do I simply move the After Update event
procedure code to this new event?
How do I stop the command button from going to the "Modules" form?
Thanks,
Bernie