Quick Button Question (1 Viewer)

theformula

New member
Local time
Today, 09:12
Joined
Nov 28, 2008
Messages
6
I have a particlar form with a ButtonA and FieldA. When ButtonA is clicked, I want it to open up FormA ONLY if FieldA says "Regulatory". If FieldA says "non-Regulatory" I want ButtonA to open FormB.

Any suggestions?

Thanks!

Warren
 

KeithG

AWF VIP
Local time
Today, 09:12
Joined
Mar 23, 2006
Messages
2,592
Let say textboxA contaims fieldA data and textb contains fieldb

if textboxA="Regulatory" then
docmd.openform "FormA"
elseif textboxA="non-Regulatory" then
docmd.openform "formB
End if
 

Users who are viewing this thread

Top Bottom