G
Guest
I have a main form which displays a purchase order entry. The form is bound
to a query which is sorted by Customer Name. This works fine. The user
sometimes doesn't know the customer for a particular invoice and wants to
search by PO Number. My approach is to have two command (toggle) buttons to
switch the search "mode". If they click on the "Search by PO" command button
the following will happen:
1) The form will now be bound to a different query, sorted by PO number
2) The "Customer Name Search" combo box will disappear
3) The "PO Number Serach" combo box will re-appear
4) The "Search By PO" command (toggle) button will disapear
5) The "Search By Customer Name" command (toggle) button will appear
I think I know how to make the search fields and command buttons disappear
and re-appear usng the "visible" attribute, but how do I change which query
the form is bound to? Is this even the right approach for this? Any help
would be appreciated. Thanks so much!
to a query which is sorted by Customer Name. This works fine. The user
sometimes doesn't know the customer for a particular invoice and wants to
search by PO Number. My approach is to have two command (toggle) buttons to
switch the search "mode". If they click on the "Search by PO" command button
the following will happen:
1) The form will now be bound to a different query, sorted by PO number
2) The "Customer Name Search" combo box will disappear
3) The "PO Number Serach" combo box will re-appear
4) The "Search By PO" command (toggle) button will disapear
5) The "Search By Customer Name" command (toggle) button will appear
I think I know how to make the search fields and command buttons disappear
and re-appear usng the "visible" attribute, but how do I change which query
the form is bound to? Is this even the right approach for this? Any help
would be appreciated. Thanks so much!