Sorry for the title. No matter how many variation I enter, google translate gives me the same "Freeze..."
Objective:
Open the attached file. Select a ShipperID from combo, click "Normal Search" Button. In result form, Edit a shipperID and move to another record to save the changes. The edited record won't be in the list anymore. I want to keep it there, even if the filter for this record is not true anymore.
My current solution: (If you click My Current method button)
Can you suggest a better method for this situation?
Thanks.
Edit: Why I'm looking for some other methods:
My method has several problems. The worst being if the database closes in an unexpected method, the SearchBy for each user is not cleared.
Objective:
- Open a search result form with a specific filter
- Edit one of the records that makes the record to go out of the scope of the filter
- Requery the the form, and still show the edited record (even if the filter is not true for this record anymore)
Open the attached file. Select a ShipperID from combo, click "Normal Search" Button. In result form, Edit a shipperID and move to another record to save the changes. The edited record won't be in the list anymore. I want to keep it there, even if the filter for this record is not true anymore.
My current solution: (If you click My Current method button)
- I've added a SearchedBy field to the table.
- Based on the search keyword , I update the SerchedBy field in the table to something like : ",1," ----------> (1 being the UserPK)
UPDATE tbl SET SearchedBy = ",1," WHERE (the filter that user has selected) - Show the result form with new filter : "Where SearchedBy Like "'*,1,*'"
- On form's close event, run a query and Replace ",1,"----> to ""
Can you suggest a better method for this situation?
Thanks.
Edit: Why I'm looking for some other methods:
My method has several problems. The worst being if the database closes in an unexpected method, the SearchBy for each user is not cleared.
Attachments
Last edited: