zeroaccess
Active member
- Local time
- Today, 01:45
- Joined
- Jan 30, 2020
- Messages
- 671
Hey All,
I've searched for answers on this but keep coming up with various ways of adding WHERE statements. I do not want to add a WHERE.
I am trying to pull only the record(s) I need to work with. A WHERE seems to pull the recordset and filter on the local machine. It's like asking the library to send you ALL the books, then YOU will decide which one you want. At least, that is what I'm seeing in the navigation bar.
Query Criteria limits the records returned to the user, which is preferred.
So, say I want to open an existing record from a record list, which opens in my popup data entry form. I want to move away from the current method of opening WHERE the ID on the form = the ID on the list, to adding the record's ID as criteria to the record source query. Then when the form opens, you should only see 1 record to cycle and no filter. Minimal memory use, minimal ask on the server side of things.
So a way to insert the ID as criteria is what I need. It would be easy enough to just type an IF statement into the Criteria, but I don't think that's possible.
Thank you for any insights.
I've searched for answers on this but keep coming up with various ways of adding WHERE statements. I do not want to add a WHERE.
I am trying to pull only the record(s) I need to work with. A WHERE seems to pull the recordset and filter on the local machine. It's like asking the library to send you ALL the books, then YOU will decide which one you want. At least, that is what I'm seeing in the navigation bar.
Query Criteria limits the records returned to the user, which is preferred.
So, say I want to open an existing record from a record list, which opens in my popup data entry form. I want to move away from the current method of opening WHERE the ID on the form = the ID on the list, to adding the record's ID as criteria to the record source query. Then when the form opens, you should only see 1 record to cycle and no filter. Minimal memory use, minimal ask on the server side of things.
So a way to insert the ID as criteria is what I need. It would be easy enough to just type an IF statement into the Criteria, but I don't think that's possible.
Thank you for any insights.