473,427 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,427 software developers and data experts.

Table Delete Warnings

132 100+
How do I supress the warning message one gets when running a Make table Query?? Access wants the user to confirm the deletion of a table before it proceeds....can U turn this function off??
Aug 30 '07 #1
8 2893
Scott Price
1,384 Expert 1GB
DoCmd.SetWarnings False works in VBA mode, but you'll have to call the query from vba to get that to work... And don't forget to turn them back on again later by changing the False to True :-)

Regards,
Scott
Aug 30 '07 #2
ADezii
8,834 Expert 8TB
How do I supress the warning message one gets when running a Make table Query?? Access wants the user to confirm the deletion of a table before it proceeds....can U turn this function off??
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SetWarnings False          'turn Warnings OFF
  2.   DoCmd.OpenQuery "qryMakeTable", acViewNormal, acEdit
  3. DoCmd.SetWarnings True            'turn Warnings ON again
Aug 30 '07 #3
ADezii
8,834 Expert 8TB
DoCmd.SetWarnings False works in VBA mode, but you'll have to call the query from vba to get that to work... And don't forget to turn them back on again later by changing the False to True :-)

Regards,
Scott
Sorry Scott, must have been working on this one at exactly the same time.
Aug 30 '07 #4
Scott Price
1,384 Expert 1GB
Sorry Scott, must have been working on this one at exactly the same time.

Never a problem! The exact method may be more helpful than just a point in the right direction :-)

Regards,
Scott
Aug 30 '07 #5
Proaccesspro
132 100+
Never a problem! The exact method may be more helpful than just a point in the right direction :-)

Regards,
Scott

Thanks, Guys!! Worked like a charm!!
Sep 4 '07 #6
ADezii
8,834 Expert 8TB
Thanks, Guys!! Worked like a charm!!
We are always glad to be of service.
Sep 4 '07 #7
Lysander
344 Expert 100+
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SetWarnings False          'turn Warnings OFF
  2.   DoCmd.OpenQuery "qryMakeTable", acViewNormal, acEdit
  3. DoCmd.SetWarnings True            'turn Warnings ON again

Can I make a late addition here. If you have error handling code in your routines (and of course, everyone does), make sure that you turn warnings back on in the error handling.

I lost a lot of data once, where a delete had failed, error handling picked up the failure, but left the system with warnings set off.
Sep 4 '07 #8
ADezii
8,834 Expert 8TB
Can I make a late addition here. If you have error handling code in your routines (and of course, everyone does), make sure that you turn warnings back on in the error handling.

I lost a lot of data once, where a delete had failed, error handling picked up the failure, but left the system with warnings set off.
Excellant point and one to surely remember! We take Error Handling for granted, usually because of the increased length of the code segments that it would entail. Certain items should always be turned ON/OFF in Error Handlers such as rolling back Transactions, turning the Hourglass back to its Normal state, closing Recordsets, etc. Thanks again for bring this point to our attention, Lysander.
Sep 4 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gordon | last post by:
I have 2 tables t and t1. In this case, t1 is a copy of t. I want to delete rows from t1 based on criteria on the t table and a relationship between t ad t1 (in this case the id column). In the...
0
by: Jim Moseby | last post by:
I stumbled across this while trying to update a table with a timestamp type column. At the time, I didn't know that the timstamp column would update itself when a row was changed. A kind gentleman...
1
by: Tony W. | last post by:
I have a MySQL question about changing the info in a table: I am using MySQL Server version: 3.23.58 I have a table called sign_region2 and it contains thousands of references to signs and the...
3
by: David Link | last post by:
Hi All, Here's a Conditional drop_table func for those interested. There was a thread on this a long time back. We do this all the time : DELETE TABLE sales; CREATE TABLE sales (...);
2
by: Doc | last post by:
Per earlier post, I am trying to save 'out' production data from a program called Solomon - basically (I think) this was /is an Access/Sql based program. We are updating to different application...
7
by: No Spam | last post by:
Dear Access 2003 users, Can anyone assist me with creating either code (preferred) or a query that would remove a single field (called ID) from a table? And as a bonus question, can anyone...
16
by: MartinR | last post by:
I would like to know the code that i should use to delete a record without the message box saying "You are about to delete a record, are you sure..." poping up. At the moment i am using the...
7
by: Serge Rielau | last post by:
Hi all, Following Ian's passionate postings on problems with ALTOBJ and the alter table wizard in the control center I'll try to explain how to use ALTOBJ with this thread. I'm not going to get...
2
by: john_aspinall | last post by:
Here's the overview: Im building an eCommerce web site using ASP. It has an Access DB at the back end. Im receiving the Product info from a series of CSV files. Ive created a Table in Access...
1
by: foolproofplan | last post by:
I have a situation where I need to convert an xml file into two types of tables in html. I have never done anything like this before, so I have been reading up on it online. However, I am not 100...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.