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

wrong RecordCount

why does my recordcount returns the # of actual records + 1? btw, i
am using ms access. i don't know what happened but at first, my table
seems ok. the recordcount returns the correct # of records. but as i
manipulate the table, (add, delete, etc) i get errors and when i
checked my recordcount, it returns 1 more than the actual # of
records. what did i do? how can i avoid this to happen again?
please help!
nick_faye
Nov 12 '05 #1
2 2056
iv******@yahoo.com (nick_faye) wrote in message news:<8a*************************@posting.google.c om>...
why does my recordcount returns the # of actual records + 1? btw, i
am using ms access. i don't know what happened but at first, my table
seems ok. the recordcount returns the correct # of records. but as i
manipulate the table, (add, delete, etc) i get errors and when i
checked my recordcount, it returns 1 more than the actual # of
records. what did i do? how can i avoid this to happen again?
please help!
nick_faye


Guess how many fingers I'm holding up.

What kind of recordset? could we see the code? (Sorry, my crystal
ball is in the shop.) "btw, [you] are using Access."
Congratulations. You're in the right group. What's the difference
between "at first" and now? If you're opening a static recordset and
now refreshing the count, then there's your problem.
Nov 12 '05 #2
pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
iv******@yahoo.com (nick_faye) wrote in message news:<8a*************************@posting.google.c om>...
why does my recordcount returns the # of actual records + 1? btw, i
am using ms access. i don't know what happened but at first, my table
seems ok. the recordcount returns the correct # of records. but as i
manipulate the table, (add, delete, etc) i get errors and when i
checked my recordcount, it returns 1 more than the actual # of
records. what did i do? how can i avoid this to happen again?
please help!
nick_faye


Guess how many fingers I'm holding up.

What kind of recordset? could we see the code? (Sorry, my crystal
ball is in the shop.) "btw, [you] are using Access."
Congratulations. You're in the right group. What's the difference
between "at first" and now? If you're opening a static recordset and
now refreshing the count, then there's your problem.


what do you mean by a static recordset? and how do you refresh your
recordcount? sorry but i am still a newbie. hope you have a lot of
patience. what i meant by "at first" is the time i created the table
until i experience the error. "now" means the time that i am having
problems. :) i don't know what happened between "at first" and "now"
that caused my problem.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff Boyer | last post by:
Hello everyone, Can someone tell me why a ADO recordset.recordcount would return a -1? I have confirmed that it has records in it by writing some values to the screen. Why can't I count the...
12
by: scott | last post by:
In LISTING 2, I have a SPROC that returns a recordset and a recordcount in SQL QA. I can access the Recordset with no problem. How can I grab the Recordcount with ASP code at the same time I'm...
2
by: Rick Brown | last post by:
I get a "subscript out of range" error when I run this code. "Rcount = rsSupplierCode.RecordCount" Returns 49 BUT "numReturned = UBound(varRecords, 2) + 1" Returns only 3 I'm I wrong to...
4
by: don.fleming | last post by:
Hi folks: Am doing a VBA SQL Select stmt with multiple rows found and not getting RecordCount > 1. I've verified there are multiple rows found by copying my SQL stmt from Debug window and pasting...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
3
by: nkechifesie | last post by:
I want my form to display the absolute position and the recordcount of the records in the database but it keeps shoing me -1 for both . Why? this is the code Private Sub MnuOVehType_Click()...
2
by: rajvbprogramer | last post by:
here is my problem. i have two records. one containing 20 records and second containing 30 records. now i want the recordcount property to use and go to the 21 record. i m calculating the...
4
by: rando1000 | last post by:
I've got a form pulling data from a table in the same database. The code below shows how the variables are set up. The problem is, the intRecs variable is 1, no matter how many rows I've got in the...
12
by: anantraoneel | last post by:
Hi Friend My project is a Library System. In Project is Book Master form. If I've select Book Type from Type Master and Publication from Publication Master then this error has come: "Arguments...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.