military donut
asked on
Get a value from Table, check if fields are -1
hello,
I want to build a SQL that will check the table based on a "permit #" then if within that it finds that 4 fields are -1 then deny using that permit#
OK, so on my form I have the field: txtPermit
on the beforeupdate, or even the afterUpdate, I want it to search the txtPermit field in a table: tblHWWPass, pull 4 fields and check to see if those all have "-1" (they are checkboxes)
txtPermit: 1
my sql will be
("Permit", "tblHWWPass", me.txtPermit)
but I don't know how to see if
Tab1
Tab2
Tab3
Tab4
are all -1
?
I want to build a SQL that will check the table based on a "permit #" then if within that it finds that 4 fields are -1 then deny using that permit#
OK, so on my form I have the field: txtPermit
on the beforeupdate, or even the afterUpdate, I want it to search the txtPermit field in a table: tblHWWPass, pull 4 fields and check to see if those all have "-1" (they are checkboxes)
txtPermit: 1
my sql will be
("Permit", "tblHWWPass", me.txtPermit)
but I don't know how to see if
Tab1
Tab2
Tab3
Tab4
are all -1
?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.