PC Review


Reply
Thread Tools Rate Thread

How do I stop Access from asking confirmation to delete a table in a Make-Table Query?

 
 
Mike Webb
Guest
Posts: n/a
 
      5th Mar 2004
Using Access 2002.

My startup form has a macro attached to run a Make-Table Query. I am unable
to figure out how to tell Access to stop asking me for
confirmation/permission to delete the table this query makes (from previous
running of the macro) so it can then create a new one. I've unchecked the 3
Confirm Edit checkboxes on the Edit/Change tab of the Options window. What
am I missing?

TIA,
Mike




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      6th Mar 2004
Add the following two steps - one before and other after
the make table. This turns off all safety measures.

SetWarnings The arguement defaults to No.

SetWarnings Change the default to Yes.


>-----Original Message-----
>Using Access 2002.
>
>My startup form has a macro attached to run a Make-Table

Query. I am unable
>to figure out how to tell Access to stop asking me for
>confirmation/permission to delete the table this query

makes (from previous
>running of the macro) so it can then create a new one.

I've unchecked the 3
>Confirm Edit checkboxes on the Edit/Change tab of the

Options window. What
>am I missing?
>
>TIA,
>Mike
>
>
>
>
>-----= Posted via Newsfeeds.Com, Uncensored Usenet News

=-----
>http://www.newsfeeds.com - The #1 Newsgroup Service in

the World!
>-----== Over 100,000 Newsgroups - 19 Different Servers!

=-----
>.
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      6th Mar 2004
On Fri, 5 Mar 2004 16:35:22 -0600, "Mike Webb"
<(E-Mail Removed)> wrote:

>Using Access 2002.
>
>My startup form has a macro attached to run a Make-Table Query. I am unable
>to figure out how to tell Access to stop asking me for
>confirmation/permission to delete the table this query makes (from previous
>running of the macro) so it can then create a new one. I've unchecked the 3
>Confirm Edit checkboxes on the Edit/Change tab of the Options window. What
>am I missing?


The short answer is that you can put a line

SetWarnings False

before running the macro step which deletes the table and runs the
maketable query; BE SURE to put

SetWarnings True

after the queries run, or you'll turn off ALL warning messages for the
rest of the Access session!

The long answer is: WHY are you running make-table queries AT ALL? If
you just create a Select query which returns the same record, you can
use it as the recordsource for a Form or a Report; you can export it;
you can base another query on it; you can do just about anything that
you can do with a Table, without the bloat and inefficiency of a
make-table query. Is it really necessary to do this at all?

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
Mike Webb
Guest
Posts: n/a
 
      8th Mar 2004
Thanks for the advice. I'll certainly use it.

As for my reason for the Make-Table query ... I'm still new at Access and I
couldn't figure a way using the wizards or my limited SQL knowledge to tell
Access to bring the data together with out a SELECT statement. Near as I
can tell, I can only use SELECT's on tables - hence my make-table query.

I'm certainly open to a better way of doing this.

Mike

"John Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news(E-Mail Removed)...
> On Fri, 5 Mar 2004 16:35:22 -0600, "Mike Webb"
> <(E-Mail Removed)> wrote:
>
> >Using Access 2002.
> >
> >My startup form has a macro attached to run a Make-Table Query. I am

unable
> >to figure out how to tell Access to stop asking me for
> >confirmation/permission to delete the table this query makes (from

previous
> >running of the macro) so it can then create a new one. I've unchecked

the 3
> >Confirm Edit checkboxes on the Edit/Change tab of the Options window.

What
> >am I missing?

>
> The short answer is that you can put a line
>
> SetWarnings False
>
> before running the macro step which deletes the table and runs the
> maketable query; BE SURE to put
>
> SetWarnings True
>
> after the queries run, or you'll turn off ALL warning messages for the
> rest of the Access session!
>
> The long answer is: WHY are you running make-table queries AT ALL? If
> you just create a Select query which returns the same record, you can
> use it as the recordsource for a Form or a Report; you can export it;
> you can base another query on it; you can do just about anything that
> you can do with a Table, without the bloat and inefficiency of a
> make-table query. Is it really necessary to do this at all?
>
> John W. Vinson[MVP]
> Come for live chats every Tuesday and Thursday
> http://go.compuserve.com/msdevapps?loc=us&access=public





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      8th Mar 2004
On Mon, 8 Mar 2004 11:47:46 -0600, "Mike Webb"
<(E-Mail Removed)> wrote:

>Thanks for the advice. I'll certainly use it.
>
>As for my reason for the Make-Table query ... I'm still new at Access and I
>couldn't figure a way using the wizards or my limited SQL knowledge to tell
>Access to bring the data together with out a SELECT statement. Near as I
>can tell, I can only use SELECT's on tables - hence my make-table query.


If you just change your MakeTable query back to a Select query it will
contain EXACTLY THE SAME information as your new table contains. A
select query is *simpler* than a maketable query, not more difficult;
it's also much faster since Access doesn't need to create new records
in the systems table, new indexes, etc.

And you can create Queries (a Query contains a SELECT clause, but it's
a query, not a SELECT) based on other Queries.

If you'ld like to post the SQL view of your MakeTable query and
describe what you're trying to accomplish with it, I'm sure there is a
solution not involving make-tables!

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Query delete after make-table John W. Vinson Microsoft Access 0 21st Jun 2011 04:44 PM
To have month and year as part of the table name in CREATE TABLE or MAKE TABLE Query ichew@scs.com.sg Microsoft Access Getting Started 1 18th Apr 2006 06:38 AM
STOP Delete existing table confirmation =?Utf-8?B?QW5keQ==?= Microsoft Access Queries 2 23rd Dec 2005 09:22 PM
make table delete confirmation Troy Microsoft Access Macros 1 25th Sep 2004 05:20 PM
Make Table query on ODBC table changes NULLs to empty strings in Access 2002 Les Mercer Microsoft Access Queries 0 29th Jun 2004 10:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:51 PM.