gl You can kind of automate Access using Windows Schedule Tasks, Start->Programs->Accessories->System Tools->Schedule Tasks create a task to open a database and in that database create an autoexe Macro that will run your queries. To create queries that can only be run by this procedure would be more difficult. A message box is hardly a deterrent. You might want to conceder creating a new db that will only have these table in them and run the queries from a different database. If that is not a possibility then you can probably do it in code. -Anthony -----Original Message----- From: Glenda Wells [mailto:gwells@xxxxxxxxxxx] Sent: Wednesday, September 25, 2002 10:48 AM To: mso@xxxxxxxxxxxxx Subject: [mso] Access Automation Hi All. I would like to have several queries via macro in one Access database run once a day automatically. If anyone attempts to run any of these particular queries manually I would like them to not be able to do that and a message to pop us saying something like "This data has already been refreshed". At a specified time, I need all make tables to be deleted automatically. Alternatively, anyone could run the specified queries via macro but if they have already been run once that day, then no one else can with the pop up message. The DB can be stored on a network directory. Any ideas on how to make this happen? Thanks in advance. /gl ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx?Subject=unsubscribe Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles ************************************************************* ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx?Subject=unsubscribe Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************