×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Forward-only cursor and VB

Forward-only cursor and VB

Forward-only cursor and VB

(OP)
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

RE: Forward-only cursor and VB

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:

www.smvfp.com

When you enter the site, go to option 19.

Leland F. Jackson, CPA
Software - Master (TM)
http://www.smvfp.com
Nothing Runs Like the Fox

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close