Results 1 to 2 of 2

Thread: Simple 1, update rs in VB6 for access

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Sunny Bournemouth UK
    Posts
    145

    Simple 1, update rs in VB6 for access

    Hi, ive got a small problem, ive got a form which is set up so that all the fields are saved to a db when a save button is licked, its connected through and rs, i need the recordset to update when save is clicked so that when i move to the next form using the ".show" i need the values from the first form to show in the drop downs in the second. it all works fien if a save the first shut it down and then when i open it again the values are there.. is there a way to refresh the recordset.. below is the code ive been rying buit to no avail.
    VB Code:
    1. Public Sub UnloadAllForms()
    2. Dim Form As Form
    3. For Each Form In Forms
    4. Unload Form
    5. Set Form = Nothing
    6. Next Form
    7. rs.Update
    8. End Sub

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Simple 1, update rs in VB6 for access

    Quote Originally Posted by ricodstar
    ... i need the recordset to update when save is clicked so that when i move to the next form using the ".show" i need the values from the first form to show in the drop downs in the second. ...
    Not sure what recordset has to do with either form so perhaps you can ellaborate and be as specific as possible.

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