H
hkgary33 via AccessMonster.com
Dear all,
(my question is a bit long.....sorry for that)
I've built a form (frmVIEW) for viewing and editing records,and this form is
in single form mode so that only one record with all fields
(FILE_NO;MOVEMENT;DATE:....etc) will be shown in the screen for one time.
Instead of using the filter by form functions in Access to search particular
record, I was required to built a custom form (frmSEEK) such that once the
user press a button in the frmVIEW header, frmSEEK will be pop up. frmSEEK
consists of 2 combo boxes, 1 txtbox and 4 buttons. The first combo box
contains all the field names that can be choose if he want to search base on
that field. The second combobox contains 2 choice: Match Exactly OR Find
Similar, it indicates the search criteria. And the user can type the field
content in the txtbox. Once they chose and typed in the comboboxes and txtbox,
they can press a Find button to find particular record.
However, the problem is that I don't know how to use only ONE query to
perform such search, if I create one query for one particular field, then I
must build as many queries as the number of fields, and it's not feasible.
Another problem is that if the search criteria is "Find Similar", then many
records may be found, then how can I display only one record in the frmVIEW,
and then when the user press a "Next" Button in the frmSEEK form, then the
next searched record will be shown in the frmVIEW?
Thanks!!!!
Gary
(my question is a bit long.....sorry for that)
I've built a form (frmVIEW) for viewing and editing records,and this form is
in single form mode so that only one record with all fields
(FILE_NO;MOVEMENT;DATE:....etc) will be shown in the screen for one time.
Instead of using the filter by form functions in Access to search particular
record, I was required to built a custom form (frmSEEK) such that once the
user press a button in the frmVIEW header, frmSEEK will be pop up. frmSEEK
consists of 2 combo boxes, 1 txtbox and 4 buttons. The first combo box
contains all the field names that can be choose if he want to search base on
that field. The second combobox contains 2 choice: Match Exactly OR Find
Similar, it indicates the search criteria. And the user can type the field
content in the txtbox. Once they chose and typed in the comboboxes and txtbox,
they can press a Find button to find particular record.
However, the problem is that I don't know how to use only ONE query to
perform such search, if I create one query for one particular field, then I
must build as many queries as the number of fields, and it's not feasible.
Another problem is that if the search criteria is "Find Similar", then many
records may be found, then how can I display only one record in the frmVIEW,
and then when the user press a "Next" Button in the frmSEEK form, then the
next searched record will be shown in the frmVIEW?
Thanks!!!!
Gary