Hi All,
I have created a simple search ability for my database, where I can put in my search parameters, and using a drop down box pick the field to be searching in. Then I open another form where I display in a listbox the query generated from the search parameters.
What I want to do now is to be able to load the main form with the appropriate record number selected in the listbox. Make sense?
I know which record I want to open, as I am finding that in my query but I am getting confused with the opening / closing of the forms and open the main form to the record I want.
here is what I have:
Thanks in advance.
Trogdor
I have created a simple search ability for my database, where I can put in my search parameters, and using a drop down box pick the field to be searching in. Then I open another form where I display in a listbox the query generated from the search parameters.
What I want to do now is to be able to load the main form with the appropriate record number selected in the listbox. Make sense?
I know which record I want to open, as I am finding that in my query but I am getting confused with the opening / closing of the forms and open the main form to the record I want.
here is what I have:
Code:
DoCmd.OpenForm "frmMain"
DoCmd.GoToRecord , , Searchtable.Value
Form.SetFocus
DoCmd.Close
Trogdor