[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Newly added record is showing, yet not there

Asked by Paurths in Access Coding/Macros, Visual Basic Programming

Tags: addess, table, compact, corrupt

Hi,

Weird thing happening...

Using ADO through Visual Basic, connecting to an access-database (2003) through ODBC.
I have 2 recordsets, one as a source, the other as destination, obviously transferring records from the source to the destination.

The code loops through the source-recordset and adds to the destination-recordset.

I use a counter in the code, and it tells me for example that 221 records have been added to the destinationtable.
After this other code loops through the destination and performs several actions. That is where i noticed things got totally messed up, it is showing a different amount of records in the destinationtable.
Sometimes the difference is 9 records, sometimes 16, sometimes any other number, but never more than 22. (so far)

Here comes the weird thing.
When i open MS Access and open the table, there are actually 221 records, as it should.
Yet, when i create a groupby query on a field of which i have went over by "the eye" and i can actually see and count 221 records, it says there are not 221 records, but less...
Then, i do a Count in the Group By and the result is 221 records.
If i use ADO to retrieve all the records from that table and loop through the recordset, it will tell me there are not 221 records. (i don't use .recordcount, i actually loop through the recordset)

The primary key in the table is on a textfield.
So i then add a Autonumberfield, save it and open the table.
It still has 221 records, but 9 of them (or any other amount) don't have a value in the newly added field (auto-increment)


If i compact and repair before i add the autonumber field, and then add the autonumberfield everything is okay, it will populate all 221 records with a number.

Does any of this behavior ring a bell to someone?

cheers
Ricky
 
Related Solutions
Keywords: Newly added record is showing, yet …
 
Loading Advertisement...
 
[+][-]12/11/08 07:39 PM, ID: 23154789Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Access Coding/Macros, Visual Basic Programming
Tags: addess, table, compact, corrupt
Sign Up Now!
Solution Provided By: Computer101
Participating Experts: 2
Solution Grade: A
 
[+][-]10/20/08 02:02 PM, ID: 22762161Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/20/08 08:11 PM, ID: 22764191Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/21/08 01:28 AM, ID: 22765352Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/21/08 01:21 PM, ID: 22771062Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/22/08 01:17 AM, ID: 22774248Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/22/08 03:40 AM, ID: 22775004Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/07/08 05:33 PM, ID: 23118239Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_EXPERT_20070906