Re: Warn me Not



Use Dir() to test if the target file exists.

If so, Kill it before executing your query.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Michael Conroy" <MichaelConroy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:27B00403-F062-458E-98F2-1733A282910F@xxxxxxxxxxxxxxxx
First, I would like to say I have the setwarnings to false on the line before
the code and I am still getting a warning. It is kind of an unusual
situation. I am taking a table in one database and, using a make table query,
putting a copy, with a new name into the backup database. The SQL to do this
is working and is not in question. However, if there is a file with the same
name, (tbl August 2007) already in the backup db, I get a run time error
3010, table 'tbl August 2007' already exists. Since the error message is
generated by the other database I went in there and unchecked the Action
Queries, but I discovered that this change works for all of Access, not just
the one database so I had to turn it back on. And Action Queries and Document
Deletions did not seem to eliminate the warning. Do you have to restart
Access when these options are changed? I did not.

I have learned with Access that if I run into a wall, the wall is there for
a good reason and maybe I have to find another way to accomplish my task. So
if you have a way to turn this warning off great, however, I will gladly
accept another way to accomplish my task. I can make the table with the new
name in the current database, how then can I move or (copy/delete) it to
another database? As always, any help is greatly appreciated.
--
Michael Conroy
Stamford, CT

.



Relevant Pages

  • Re: Access 2000 Make Table Query Warning Box -- use currentdb.execute
    ... currentdb.execute "SQL or action queryname" ... When this query is run, and before it asks the user for the input, I get a warning message that says that the query is about to replace the table with new data, and is the user ok with that?, yes or no. ... As the database designer, I know to answer yes, and it goes through the function with no issues. ...
    (microsoft.public.access.queries)
  • Re: Cant Update Records
    ... >I've now put both tables in the same database ... You're apparently assuming either that you are the only person asking ... >when I try to edit...I get a warning that someone else has edited the record ... If you'ld care to post the SQL of the query, ...
    (microsoft.public.access.forms)
  • Re: SQL statement in Perl doesnt work
    ... The last answer by Brian McCauley made me look again at the query result from the database. ... By changing the range of records I got the results I expected in the first place, so I apparently misinterpreted the warning. ...
    (comp.lang.perl.misc)
  • Cross-product and join question
    ... I'm designing a query with DBArtisan against a Sybase database. ... I receive the following 'Warning' from DBArtisan: ...
    (comp.databases.sybase)
  • Re: Append query
    ... Yes Both Append queries run just fine if I just run them from main screen or ... I'll take out the warning. ... >> I am trying to run an Append query from VBA code. ... >> this in the same database to run a delete Query using this code and it ...
    (microsoft.public.access.formscoding)

Loading