473,395 Members | 1,658 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.

Append queries

76
Hello,

Is there a way to get rid of the information boxes when I run an append query? I wand to use it as part of a macro that just happens when it is clicked, but I don't want the user to have to hit OK and Yes to a bunch of information boxes. How can I get rid of this necessity?

Thanks,

Charlie
Mar 23 '07 #1
6 1200
ckpoll2
76
I just realized that I said append queries, but I actually meant update queries. Any suggestions?
Mar 23 '07 #2
Denburt
1,356 Expert 1GB
BE CAREFULL with the setwarnings you might find yourself deleting things and not receiving a prompt.



DoCmd.Hourglass True
DoCmd.SetWarnings False

Your Code here

DoCmd.Hourglass False
DoCmd.SetWarnings True
Mar 23 '07 #3
ckpoll2
76
I'm not sure I understand. The SQL code I have is:

DELETE [Personal Property Hours].[Transaction Number ID], [Personal Property Hours].Date, [Personal Property Hours].Name, [Personal Property Hours].Site, [Personal Property Hours].Type, [Personal Property Hours].[Tech Input Items], [Personal Property Hours].Items, [Personal Property Hours].Hours, [Personal Property Hours].Notes
FROM [Personal Property Hours]
WHERE ((([Personal Property Hours].Type) Is Null));

When I put the top section above it and the bottom below, it gives me an error message. What am I doing wrong?
Mar 23 '07 #4
Denburt
1,356 Expert 1GB
What does the error message say? Also if there is a debug button hit it and tell me what line is highlighted.
Mar 23 '07 #5
nico5038
3,080 Expert 2GB
The docmd statement is risky as it will (after a dump) stay active.

Personally I prefer to run the query from code like:

currentdb.execute ("<place your query text here within the quotes>")

This won't trigger the messages and not have the disadvantage of the docmd statement.

Nic;o)
Mar 24 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
I'm not sure I understand. The SQL code I have is:

DELETE [Personal Property Hours].[Transaction Number ID], [Personal Property Hours].Date, [Personal Property Hours].Name, [Personal Property Hours].Site, [Personal Property Hours].Type, [Personal Property Hours].[Tech Input Items], [Personal Property Hours].Items, [Personal Property Hours].Hours, [Personal Property Hours].Notes
FROM [Personal Property Hours]
WHERE ((([Personal Property Hours].Type) Is Null));

When I put the top section above it and the bottom below, it gives me an error message. What am I doing wrong?
In a delete query you cannot decide to delete certain columns you have to delete the whole record. In other words ...

Expand|Select|Wrap|Line Numbers
  1. DELETE * FROM [Personal Property Hours]
  2. WHERE ((([Personal Property Hours].Type) Is Null));
  3.  
Mary
Mar 25 '07 #7

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

Similar topics

2
by: JMCN | last post by:
hi i need some advice on whether if it would be better to use an append query or an update query. here is the situation, i have linked another database table to my current database. then i...
5
by: Barn Yard | last post by:
good morning, im still kind of new to VBA but I have learned some interesting things so far. Right now I am normalizing my survey database so I'm having to run an append query for each...
1
by: Aaron | last post by:
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; ...
0
by: karinski | last post by:
Hi All, I have a split f/e - b/e setup on my database with RWOP queries on the front end. The code below gets a PO number(s), and vendor name from a multi choice list box on another form. It...
1
by: Kristina | last post by:
I'm trying to run multiple append queries in an Access front end that append data from tables in a .mdb into tables in SQL Server 2000. My Access front end has a link to both tables, the .mdb and...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
3
by: Dixie | last post by:
I know how to append records from one table to another in the same database, but I need to be able to append the records from all the tables in one database into new empty tables in another...
4
by: robboll | last post by:
When I try to use an append query from an oracle link it takes forever. I am exploring the idea of doing an append action using a pass-through query. If I have an Oracle ODBC connection to...
14
by: Supermansteel | last post by:
My team at work uses Cognos to run multiple queries to pull in data. Then they take that data and import into Access and then usually run an Append Query to run a RND function to pull out a few...
8
jinalpatel
by: jinalpatel | last post by:
I have two tables. tblClass and tblWithdrawn. On my main form(bound to tblClass) I have several data entry fields like Date withdrawn, Status (active or withdrawn) Date Classified etc. Also...
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
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
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.