H
hkgary33 via AccessMonster.com
Dear all,
In my database, I've built a main form (frmVIEW) and it have a subform
(frmAPPDATA). In the main form, it shows the basic information of each file,
which are stored in table named tbl_FileInfo. It includes the key field
FileNo. While in the subform, it lists the information of those applicants
involved in that particular file, and each applicant's ID is shown in that
subform. All these information in the subform is stored in a table named
tbl_App. tbl_FileInfo and tbl_App are linked with the key field FileNo, and
the relationship is one-to-many (becuz one file may involve many applicants).
Now my problem is that I want to add a button call "Auto Search" in the main
form such that once the click event is triggered, it will automatically
obtains all applicants' IDs in that file and use it as a criteria to search
the applicants. The result is to show for each applicant, what files they
were involved and its detail infomation stoed in tbl_FileInfo. I really donno
how to use a query to search it . Also, how can I show the result of this
query in a report?
the expected result is :
ApplicantID FileNo...
1234 1
3
6
1235 2
4
5
....
Thanks for your kind help!!!!!!!
Gary
In my database, I've built a main form (frmVIEW) and it have a subform
(frmAPPDATA). In the main form, it shows the basic information of each file,
which are stored in table named tbl_FileInfo. It includes the key field
FileNo. While in the subform, it lists the information of those applicants
involved in that particular file, and each applicant's ID is shown in that
subform. All these information in the subform is stored in a table named
tbl_App. tbl_FileInfo and tbl_App are linked with the key field FileNo, and
the relationship is one-to-many (becuz one file may involve many applicants).
Now my problem is that I want to add a button call "Auto Search" in the main
form such that once the click event is triggered, it will automatically
obtains all applicants' IDs in that file and use it as a criteria to search
the applicants. The result is to show for each applicant, what files they
were involved and its detail infomation stoed in tbl_FileInfo. I really donno
how to use a query to search it . Also, how can I show the result of this
query in a report?
the expected result is :
ApplicantID FileNo...
1234 1
3
6
1235 2
4
5
....
Thanks for your kind help!!!!!!!
Gary