Results 1 to 16 of 16

Thread: navigate through sql records [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member drpcken's Avatar
    Join Date
    Apr 2004
    Location
    devenv
    Posts
    591

    navigate through sql records [RESOLVED]

    Have a problem and can't put my finger on how to get it to work.

    I'm making a webform, in the webform there are textbox controls. I'll use 3 for this example.

    txtFirstName
    txtMI
    txtLastName

    I also have a SQL table, (connections already created and working) where i have 3 columns: FirstName, MI, LastName. They also have a primary key called RecId which is just an autonumber.

    I have 2 buttons: btnPrev and btnNext. See where I'm going with this? I want to click btnNext and have it put the values of the three columns in sql into the corrosponding 3 textboxes, and when I hit btnNext again, go to the next record, and so forth. When I hit btnPrev i want it to move to the previous record in the database.

    I'm thinking I need to create a dataset holding this information, but getting it from the dataset to the txtboxes is stumping me.

    PLEASE HELP!!! Thank you guys so much!!
    Last edited by drpcken; Jul 2nd, 2004 at 12:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width