Solved

recordset problem

Posted on 1998-06-07
5
164 Views
Last Modified: 2010-05-03
hi, I am connecting a VB to a Access db.
I try to open the recordset from a table. But it returns only one row of records for me. So I went back to Access and test it in the query. I got 4 records.
By the way, I open another recordset within the same module, It returns the records that I expected.

How come it only returns one record to me?
What is the possible cause to this problem?
I don't think syntax is the problem, 'cause I checked it no less than 20 times.

thank you

ny971181
0
Comment
Question by:ny971181
  • 2
  • 2
5 Comments
 
LVL 1

Author Comment

by:ny971181
ID: 1462721
Edited text of question
0
 
LVL 1

Expert Comment

by:dipal_shah
ID: 1462722
I think you are using VB Enterprise addition. I was facing the same problem. I used RDO control and it got solved. I suppose there is some problem with MS - Jet shipped with Enterprise edition.


dipal
0
 
LVL 1

Expert Comment

by:dipal_shah
ID: 1462723
I think you are using VB Enterprise addition. I was facing the same problem. I used RDO control and it got solved. I suppose there is some problem with MS - Jet shipped with Enterprise edition. IF you will run the same query under Visual Data manager it will return only one row. So don't waste time for that and use RDO control.

Dipal
0
 
LVL 1

Author Comment

by:ny971181
ID: 1462724
Thank you but I can't use RDO control.

ny971181
0
 
LVL 1

Accepted Solution

by:
sachinkas earned 10 total points
ID: 1462725
Try giving movelast to the recordset and check. Also could you paste the code that you are trying to work out.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 77
Visual Studio 2005 text editor 10 43
Help me. 3 60
adding "ungroup sheets" to existing vbs code 5 29
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

808 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