User Profile
Collapse
-
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.... -
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.Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: