Re: ""
Our simple one page estimate form has buttons on the top to search for an estimate number, go to the previous/last record, etc.
We implemented the code above into a report, and double clicking on a field in that report brings up the form like we wanted. However when we get to the form using that method, the search feature and previous/last buttons do not work. Is there a way around this so that the user can still use the buttons that they are familiar with? ""
The problem with opening the form from the report is caused by the code that opens the form to match the record on the report. That causes the form to open with a where condition that limits the form's record source to only one record - the one with the ID that matches that record on the report.
That is the reason why the search feature and previous/last buttons don't work.
One work around could be (untested idea) to put a button on the form that resets the form's record source to what it would be when you open the form normally (not from the report).
Perhaps the button could have code like:
Me.RecordSource = "QueryName", where QueryName is the usual record source for the form,
or Me.RecordSource = strSQL, where strSQL is the usual record source for the form.