Solved

you are about to append 1 record

Posted on 2002-07-07
3
858 Views
Last Modified: 2008-03-04
Hi guys,

in my application VBC, I use the SQL statement "Insert into tableName...." in a loop. So each time this statement is executed I get a messge box saying that you are about to append 1 row. Are you sure ......

Imagine that if I have 1000 records to be appended using the previous code, I will be forced to answer with yes for all 1000 records appended.

How can I prevent this message from appearance, and make Access append the records without getting user confirmation.

Cheers,
0
Comment
Question by:HaryMary
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
ildc earned 200 total points
ID: 7135092
Hy harymary,

Just try to put this one in your code

DoCmd.SetWarnings False

and put it back to true in your errortracking at the end,
otherwise it will stay disactivated.

But shouldn't you better use a recordset instead, or create a append query who adds all the records at the same time ?

Regards
0
 
LVL 28

Expert Comment

by:TextReport
ID: 7135121
Hi, Following on from PAQ 20320238 use the AddNew method of a recordset rather than executing the SQL statement. If you insist on the SQL statement then it is as ildc said.

Cheers, Andrew
0
 
LVL 1

Author Comment

by:HaryMary
ID: 7135455
Thanks very much Andrew and Ildc.
Since Ildc answered my question firs, I will give him the points.

Cheers,
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question