Hey,
I have a recordset which extracts atm just one field from a query and runs through that field looking for a particular value (-1), when it finds one it executes a bit of code and then continues its search.
The bit of code extracts information via DLookup from the same query. The problem with this is that i've discovered that there can be more than one value to be extracted when that code executes. The obvious issue then is that DLookup only takes one of these values, thus not getting all the information.
What I have now done is include the whole query in the recordset (SELECT * FROM ...)
My issue now is I am unaware of how to correctly navigate the recordset the same way I was before, since there is now more fields than just the simple way from above.
Basically I am hoping somebody can show me how to cycle through the the recordset based on just one of the colums, if that makes sense.
Cheers
I have a recordset which extracts atm just one field from a query and runs through that field looking for a particular value (-1), when it finds one it executes a bit of code and then continues its search.
The bit of code extracts information via DLookup from the same query. The problem with this is that i've discovered that there can be more than one value to be extracted when that code executes. The obvious issue then is that DLookup only takes one of these values, thus not getting all the information.
What I have now done is include the whole query in the recordset (SELECT * FROM ...)
My issue now is I am unaware of how to correctly navigate the recordset the same way I was before, since there is now more fields than just the simple way from above.
Basically I am hoping somebody can show me how to cycle through the the recordset based on just one of the colums, if that makes sense.
Cheers