Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

let a form look to a checkbox in a table

Status
Not open for further replies.

Lightlancer

Programmer
Jul 18, 2008
88
NL
hi there,

i have alot of forms in my database and now they must look into a table (tblstatus) if this form is enabled or disabled for users, i know to put this in the onload or on open event, but what code do i need to use, to let the form look into that table and look for a field and then if checkbox is True, then continue if its False, the form must be closed and a msgbox must appear to tell the user, this form has been disabled by Administrator

Any ideas?

Lightlancer
 
Have a look at the DLookup() function in Access help.
Maybe set Cancel = True in the Form Open event?

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top