Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forward-only cursor and VB

Status
Not open for further replies.

aneal11

Programmer
May 21, 2002
1
US
I am working on a VB app that pulls from a pgAdmin database. After retrieving the recordset, I write the results to an Excel file.

My dilemma is that I can't figure out how to move from the current record to the next record in the recordset. My old VB standby, "MoveNext", doesn't seem to work with a forward-only cursor, and I can't seem to find any help that explains how the forward-only cursor moves forward.

Two questions: 1) Does pgAdmin use forward-only cursors exclusively? If not, how do I change the cursor setting?
2) Is there a means in VB to move from the current record to the next consecutive record?

Any and all advice is welcome.

Thanks!
A

 
Hi A,

I have written a Visual FoxPro app that is a front-end to a postgres back-end database. The app was written to provide an example of how VFP could be used in a client/server environment. The application is free and includes all source code and the postgres ODBC driver. I have the database used in the example app on my web server, so once you install the example app and setup the ODBC drive you can connect to my postgres server on my RedHat Linux 7.1 box to try it out. The only problem is you will need a copy of VFP 7 to run the app. The app can be downloaded at:


When you enter the site, go to option 19.

Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top