Hi,
I have these 2 forms frmProducts & frmSearchProducts. By clicking a button on frmProducts, frmSearchProducts is opened.
On the form frmProducts the user can navigate through all the records of the table tblProducts(all the fields are on the form). On the form frmSearchProducts, there is a textbox for every field in the table tblProducts too(but here the textboxes are not based on the fields in that table).
Now, on the form frmSearchProducts, there's also a listbox and a command button 'Search'. If the user enters for example the letter 'p' in the textbox 'txtProductName' and then presses the command button on the form, all the products that haven a name starting with 'p' from the table tblProducts are shown in the listbox.
What I would like now, is that when I for example double click on a product in the list on the form 'frmSearchProducts', I will return to the form frmProducts showing the choosen product. So, I actually want the record source of the form to be based on the rowsource of the list.
Thanks in advance for any help,
dj.
I have these 2 forms frmProducts & frmSearchProducts. By clicking a button on frmProducts, frmSearchProducts is opened.
On the form frmProducts the user can navigate through all the records of the table tblProducts(all the fields are on the form). On the form frmSearchProducts, there is a textbox for every field in the table tblProducts too(but here the textboxes are not based on the fields in that table).
Now, on the form frmSearchProducts, there's also a listbox and a command button 'Search'. If the user enters for example the letter 'p' in the textbox 'txtProductName' and then presses the command button on the form, all the products that haven a name starting with 'p' from the table tblProducts are shown in the listbox.
What I would like now, is that when I for example double click on a product in the list on the form 'frmSearchProducts', I will return to the form frmProducts showing the choosen product. So, I actually want the record source of the form to be based on the rowsource of the list.
Thanks in advance for any help,
dj.