Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If a table exists (Access 2000)

    In the OnOpen event of the form i have the command
    DoCmd.OpenQuery "QryUpdateDDUWithComponents"
    I want this command to be executed only when the table products exists. How could i put this condition before the comand ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: If a table exists (Access 2000)

    You can loop through the TableDefs collection of the CurrentDb object to see if there is one whose name is Products.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •