473,395 Members | 1,348 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,395 software developers and data experts.

removing warning msgs when deleting reccords

Hello,

I’m using
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

in a line of code to delete the current record but when I do ,it asks me if I’m sure I want to delete it. is there a way to get rid of that warning msg and just delete the record?
Thank you in advance =D
Nov 1 '07 #1
5 1244
Rabbit
12,516 Expert Mod 8TB
DoCmd.SetWarnings False
...
DoCmd.SetWarnings True
Nov 1 '07 #2
ohhh wow that simple =D, hehe thx so much
Nov 1 '07 #3
Rabbit
12,516 Expert Mod 8TB
No problem, good luck.
Nov 1 '07 #4
missinglinq
3,532 Expert 2GB
And always, always, always remember the

DoCmd.SetWarnings True

part! Otherwise warnings you need to see may be suppressed as well!

Linq ;0)>
Nov 1 '07 #5
hehe yupp i knew that much :P :P
thx anyway =D
Nov 2 '07 #6

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

Similar topics

4
by: Sean Bartholomew | last post by:
even though my code works and everything i keep getting these annoying messages. can anyone help? Path for the user defined root 'CT_INSTALL' cannot be found '' Warning : illegal multi-line...
2
by: kermit | last post by:
I have several ASP.NET pages that run on an intranet with an IIS server. Several of them use XML.DOM to open an XML file. doc.Load(sPath). When the is command to open the file is up...
5
by: mar10a | last post by:
I have an extensive access database and have about 50 to 60 forms and 50-60 reports I need to remove. I can't seem to find a way to select all of these at one time to delete all at once. I've...
1
by: Dave | last post by:
I keep getting this warning (sometimes error): Warning: The dependency 'Brierley.Process, Version=1.0.1711.13537, Culture=neutral' in project 'ATCustomerSrv' cannot be copied to the run...
24
by: RyanTaylor | last post by:
I have a final coming up later this week in my beginning Java class and my prof has decided to give us possible Javascript code we may have to write. Problem is, we didn't really cover JS and what...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
14
by: Averell | last post by:
Hi, I made a gridview with VWD. The gridview has the Delete button set (ShowDeleteButton="True" in the <asp:CommandField>). It works perfect, but i would like to add a warning before the record...
10
tuxalot
by: tuxalot | last post by:
When changing paths to a BE db located on a network via DoCmd.TransferDatabase is there a way to suppress the macro warning messages that appear? I have 14 tables, and 14 warning messages appear in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.