Solved

recordset problem

Posted on 1998-06-07
5
163 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 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