K
Karen C via AccessMonster.com
I’m working on a form with tab controls listing all reports available to
allow our users to select reports to print or preview. We have a report that
lists all jobs for a selected project manager and one that lists all jobs for
a selected client. Currently this is run from a form with just these two
reports, using a combo boxes with the PM# or client # as the bound field. The
query uses a where clause to limit the records returned by the PM or client #
on the form. As these are long lists, I would like to make the bound field
the PM or client name instead of number as this will be easier for the user.
I’m still learning VB and I’m not sure how to proceed. Currently the code
tests for a default ‘0’ selection to determine which report to run. How can I
tell if a selection was made if the bound field is a name instead of a number?
How do I reference the unbound number from my new form in the query? Should I
change the where clause to use the name instead of the number? Would it be
better to have two option buttons for these two reports? Thank you in advance
for all assistance and suggestions.
allow our users to select reports to print or preview. We have a report that
lists all jobs for a selected project manager and one that lists all jobs for
a selected client. Currently this is run from a form with just these two
reports, using a combo boxes with the PM# or client # as the bound field. The
query uses a where clause to limit the records returned by the PM or client #
on the form. As these are long lists, I would like to make the bound field
the PM or client name instead of number as this will be easier for the user.
I’m still learning VB and I’m not sure how to proceed. Currently the code
tests for a default ‘0’ selection to determine which report to run. How can I
tell if a selection was made if the bound field is a name instead of a number?
How do I reference the unbound number from my new form in the query? Should I
change the where clause to use the name instead of the number? Would it be
better to have two option buttons for these two reports? Thank you in advance
for all assistance and suggestions.