User Profile

Collapse

Profile Sidebar

Collapse
Wazza0161
Wazza0161
Last Activity: Mar 18 '22, 05:01 AM
Joined: Mar 15 '22
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Wazza0161
    replied to Having trouble updating a recordset
    I have solved the problem by using a nested loop. Works brilliantly. Thanks for all your advice but I was able nut it out myself. I have tidied the code up a bit, used a query instead of a table, removed all the MsgBoxes relating to step confirmations, removed all comments. I am buzzing with this now. here is the sample from Immediate window, where I linked 3 valves with the same model. Hopefully I have added the coding correctly this time....
    See more | Go to post

    Leave a comment:


  • Wazza0161
    replied to Having trouble updating a recordset
    Thanks NeoPa,

    Tips are welcome for both website and coding. I thought of trying to have an open-ended loop (say do while something obvious where the loop specifies the link, not an If Statement) and then let the user dictate when to exit (exiting the loop has been proven to work) and thus not letting the code get confused.
    See more | Go to post

    Leave a comment:


  • Wazza0161
    started a topic Having trouble updating a recordset

    Having trouble updating a recordset

    The code will not accept the top line inside the Do While loop. I am open to suggestions. I would like the user to type in a collection of 1 or more numbers that will need a common index applied. (forming part of a one-many relationship).
    Code:
    Public Sub ValveLink_Click()
    
        Dim db As Database
        Dim rs As Recordset
    
        Dim IndexFocus  As Long
        Dim Valve_No As Long
        Dim i As Integer
    ...
    See more | Go to post
    Last edited by NeoPa; Mar 15 '22, 07:35 PM. Reason: Added mandatory [CODE] tags.
No activity results to display
Show More
Working...