×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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

Cursor types and the autonumber field with ADO/Remote acccess

Cursor types and the autonumber field with ADO/Remote acccess

Cursor types and the autonumber field with ADO/Remote acccess

(OP)
I am new to cursor types. If you use a client side cursor (Access Database), and add a new record, the autonumber field value is NOT immediately available (shows null). Works fine with server side and I understand the logic. However, how do most people deal with this? If using a client side cursor, are we supposed to Requery and movelast after an addnew? This won't work with a sorted query always. How do people deal with this? When should one use server side as opposed to client side cursors? Also, the DED doesn't seem to allow server side cursors to work properly with access databases. I get an error when I run the command. If I create the recordset manually and set propertys manually in this recordset, I can do server side cursors (and get the autonumber field value immediately) but I would rather use a command in the DED. Its simpler. Less code etc. Anyone had this problem or know what I might be doing wrong in the DED with regards to server side cursors not working from it?
Replies continue below

Recommended for you

RE: Cursor types and the autonumber field with ADO/Remote acccess

Once you update using Client Side Cursors - Do a RS.Requery
Do not use Server Side Cursors with Access - Do as above.

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