473,398 Members | 2,165 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,398 software developers and data experts.

ADO Insert Queries Incomplete

I frequently use ADO objects in VB6 with MS Access "Append" queries. I repeatedly have problems with the queries completing without all of the expected records. If I put a break in the code right after the action query the query will complete as expected. Am I missing a setting or flag that will allow for the full completion of the update?

Thanks.
Mar 27 '07 #1
1 1269
devonknows
137 100+
I frequently use ADO objects in VB6 with MS Access "Append" queries. I repeatedly have problems with the queries completing without all of the expected records. If I put a break in the code right after the action query the query will complete as expected. Am I missing a setting or flag that will allow for the full completion of the update?

Thanks.
What references are you using, i mean personally i use the ActiveX Data 2.1 Library, then with that you create your SQL statement

SQLSTATEMENT = "SELECT * FROM MyTableName ORDER BY userID"

using the ADODB.Recordset
Expand|Select|Wrap|Line Numbers
  1. dim rs as ADODB.Recordset
  2.  
  3. rs = connectioname.Execute(SQLSTATEMENT, , AdCmdText)
  4.  
all the records from MyTableName are now stored in the recordset (rs) which you can use a do while not rs.EOF loop to list it into your listbox or what ever you want to do with the data you are extracting.

Im not sure if this is what you are looking for but may just be a nudge in the right direction.

Kind Regards
Devon.
Mar 27 '07 #2

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

Similar topics

8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
0
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
3
by: pjcraig | last post by:
This is driving me crazy! I have a form that a user will access from another form by selecting the item that they wish to view. When they open the new form, I pass through the id of the item they...
10
by: Steve Kelley | last post by:
Hello all. I'm new to this group and I'm working on my first real VB.Net project. I'm having trouble creating and archive of a database. We use an Access database to store results from our...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.