Hello there,
I have created a DB to track staff that have been trained to use applications at my organization.
I use the DB to collect the person's name, professional group and the date that they attended training of a specific application/module. So long as the date is blank, it is assumed that they have not been trained in that specific application. When a date is entered, it implies that the person is trained.
I created a search form where I can recall information about all of the people trained (leave the search criteria blank) or I can search by specific criteria - full name or portion of it for specific individuals, professional group, the module (using radio buttons), and/or date range.
Date Range works like so: I select a module and choose a Start date from which to start searching (e.g. all people trained since Jan 1/06) or an End date (all ppl trained before June 31/05), or a range using both Start and End Dates (ppl trained between Feb 01/06 and June 01/06).
I use VB coding to conduct the search and return the required info in a subform. I can click on an Edit button and add/adjust info for ppl already trained.
**What I would like to do is create a report based on the info returned in the subform. Currently, I am basing the info in the report on a Query, but that query recalls all of the information in the table. Can I use the same VB code that I have for the main form? How can I have that pass to a report?**
Much appreciated,
Silvia
I have created a DB to track staff that have been trained to use applications at my organization.
I use the DB to collect the person's name, professional group and the date that they attended training of a specific application/module. So long as the date is blank, it is assumed that they have not been trained in that specific application. When a date is entered, it implies that the person is trained.
I created a search form where I can recall information about all of the people trained (leave the search criteria blank) or I can search by specific criteria - full name or portion of it for specific individuals, professional group, the module (using radio buttons), and/or date range.
Date Range works like so: I select a module and choose a Start date from which to start searching (e.g. all people trained since Jan 1/06) or an End date (all ppl trained before June 31/05), or a range using both Start and End Dates (ppl trained between Feb 01/06 and June 01/06).
I use VB coding to conduct the search and return the required info in a subform. I can click on an Edit button and add/adjust info for ppl already trained.
**What I would like to do is create a report based on the info returned in the subform. Currently, I am basing the info in the report on a Query, but that query recalls all of the information in the table. Can I use the same VB code that I have for the main form? How can I have that pass to a report?**
Much appreciated,
Silvia