Check table name

  • Thread starter Thread starter Pietro
  • Start date Start date
P

Pietro

Hi,

How can i do this in a form's timer event :
If there's a table called "Update" then DoCmd.deleteobject, acform "login"
If there's not DoCmd.....
 
You can have form open in hidden mode and in its timer event you can
have your code to check if you have your table and delete the form:

for each t in currentdb.tabledefs
if t.name="Update" then
DoCmd.deleteobject, acform "login"
end if
next

navin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top