Back in the saddle. Been a while since I've done any VBA coding and the software has seen some changes since last I played with it 10 years ago.
Here's what I'm trying to do (short term)
IN VBA - use a query (or DLOOKUP etc) to search a table for the row that contains the highest value that is less than a supplied value and return the row id of that row.
So, user puts in an amount (say 10,000) and the systems will find all records with a value in field "searchme" of LESS than 10,000, and then return the row id of the row with highest "searchme" less than 10,000.
LONG TERM
that returned id will become the criteria for a new query. This second query will search another table for all rows with a "category_ID" equal to the row_ID returned from the previous query.
The second step is easy - I only provide it in case you might suggest a way to do it all in one shot instead of two seperate passes.
Thanks!
Here's what I'm trying to do (short term)
IN VBA - use a query (or DLOOKUP etc) to search a table for the row that contains the highest value that is less than a supplied value and return the row id of that row.
So, user puts in an amount (say 10,000) and the systems will find all records with a value in field "searchme" of LESS than 10,000, and then return the row id of the row with highest "searchme" less than 10,000.
LONG TERM
that returned id will become the criteria for a new query. This second query will search another table for all rows with a "category_ID" equal to the row_ID returned from the previous query.
The second step is easy - I only provide it in case you might suggest a way to do it all in one shot instead of two seperate passes.
Thanks!