Hey Guys, got a question. Can you use the "CurrentProject" and the ISLOADED function to tell if a table is open? If not is there a way to tell if a table is open?
If SysCmd (acSysCmdGetObjectState, acTable, "TableName") > 0 Then ' Table is Open
It returns 0 if the table isn't open.
For table validation, as Access doesn't support triggers you either need to lock down the interface and use forms with code to audit the changes, or restrict entries using check constraints, primary/foreign keys etc to only valid values.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.