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

Only 50000 records returned from query

I'm using a sproc to query a SQL Server table with about 300,000 rows,
but when I query the table using a select query, it returns only
exactly 50,000 rows. The front end is an Access 2000 application. I
suspect that's the culprit even though max records is set to zero?
I must be missing something.
Thanks,
lq
Jun 27 '08 #1
4 2000
Greetings,

Do you have access to the code for your SP? Maybe your table in
question really has only 50,000 rows but the sp is joining a bigger
table to this one with a left join or maybe the sp is doing a Union All
to some other tables?

If you have access to query analyzer do a

select count(*) from tbl_In_question

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #2
Lauren Quantrell wrote:
...The front end is an Access 2000 application. I
suspect that's the culprit even though max records is set to zero?
I must be missing something.
Access does limit the records. You can try to alter the query limits
from inside access. I had the same problem with Informix 4GL years ago.
Its all about what you use to access the records.

If you VBA, you may want to use ADO and open the SQL server directly
rather than let Access to natively query via a form, et al.
Jun 27 '08 #3
Harry,
I can create the connection directly in VBA, I'll try that. Currently
the sproc is just a recordsource on a form.
lq
On Apr 17, 7:22*pm, Harry Skelton <skelton.ha...@gmail.comwrote:
Lauren Quantrell wrote:
...The front end is an Access 2000 application. I
suspect that's the culprit even though max records is set to zero?
I must be missing something.

Access does limit the records. *You can try to alter the query limits
from inside access. *I had the same problem with Informix 4GL years ago.
* Its all about what you use to access the records.

If you VBA, you may want to use ADO and open the SQL server directly
rather than let Access to natively query via a form, et al.
Jun 27 '08 #4
I just realized there's a form level property - max records. It was
set to 50000. Mystery solved. Thanks.
lq

On Apr 17, 7:22*pm, Harry Skelton <skelton.ha...@gmail.comwrote:
Lauren Quantrell wrote:
...The front end is an Access 2000 application. I
suspect that's the culprit even though max records is set to zero?
I must be missing something.

Access does limit the records. *You can try to alter the query limits
from inside access. *I had the same problem with Informix 4GL years ago.
* Its all about what you use to access the records.

If you VBA, you may want to use ADO and open the SQL server directly
rather than let Access to natively query via a form, et al.
Jun 27 '08 #5

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

Similar topics

3
by: Fred | last post by:
I have a query that returns multiple identical records, however it should only return one. Indeed there is only one record for the OrderActionTypecode of 'P' yet there are two orderactions so it...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
5
by: michael montagne | last post by:
Problem with this statement: sSQL = "SELECT * FROM Projects;" Set oDbe = CreateObject("DAO.DBEngine.36") oDbe.SystemDB = "myworkgrupfile.MDW" Set oWS = oDbe.CreateWorkspace("", "me", "") Set oDB...
5
by: Terri | last post by:
I have a form with a multi-select combo. I dynamically build a SELECT statement, open a report, and set the recordsource to my dynamic SELECT statement. I count the records returned in the report...
3
by: deko | last post by:
Is there any way to limit the number of records loaded into a ListBox? I looked at qdf.MaxRecords (to apply to the query that is the RowSource of the ListBox) but that only applies to ODBC data...
6
by: zack | last post by:
This query has been driving me crazy, and would be grateful for a nudge in the right direction. Still pretty much a beginner using Access 2003, I just cannot figure the solution to the following in...
7
by: underground | last post by:
I have a problem that I've spent countless hours on and I'm more than certain this is a obviuos issue to an expert but I am still learning. I have a paging script that I have modified to display a...
1
by: jasone | last post by:
Hi all, ive got a search working, as shown below... on the page i want to show how many records are returned, im sure this is pretty simple but cant really work it out. any help or advice...
9
by: dizzydangler | last post by:
Hi, all! After receiving a lot of help from ADezzi, Msquared, and NeoPa getting my ms access 2007 db functioning, I've run into another hitch that I haven't been able to solve. The database itself...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.