N
NorthStar
Good morning everyone;
I'm designing a database to record and produce military driver's licenses.
I have the input form designed using a tabbed control so that I can have
basic license info on one tab, vehicle qualifications on a second tab,
trainer info on the third, organization info on the fourth, and contact info
on the fifth. The key field for the basic table is the SSAN and the linking
field for vehicle and trainer info is also the SSAN. Information is
presented on the second and third tabs via linked subforms.
The first report I've designed prints a military drivers license (MDL) and
is activated by clicking a control button in the footer of the form. The
on-click event for the button control activates a macro that opens the MDL
report in print preview mode. The report is driven by a query that has the
following statement in the first criteria for the SSAN field:
Forms![Form - License Data Input]![SSAN]
This is so that when I click the print button, I get an MDL for that one
person and not for everyone in the database. I've done this in a similar
database for work order production and it works fine. However, in this MDL
database, it doesn't work. Instead of Access showing me the driver's
license for the person I just entered/edited, I get a dialog box on the
screen that repeats the forms statement above.
I don't understand why this statement should work for the work order
database and not for the MDL database. Can anyone tell me what I'm doing
wrong and how to fix it? I'm using Access 2000 for this application.
Thanks,
John.
--
NorthStar
Always do right. This will gratify some people and astonish the rest.
Spam protected -- Remove _NadaSpam_ to e-mail
I'm designing a database to record and produce military driver's licenses.
I have the input form designed using a tabbed control so that I can have
basic license info on one tab, vehicle qualifications on a second tab,
trainer info on the third, organization info on the fourth, and contact info
on the fifth. The key field for the basic table is the SSAN and the linking
field for vehicle and trainer info is also the SSAN. Information is
presented on the second and third tabs via linked subforms.
The first report I've designed prints a military drivers license (MDL) and
is activated by clicking a control button in the footer of the form. The
on-click event for the button control activates a macro that opens the MDL
report in print preview mode. The report is driven by a query that has the
following statement in the first criteria for the SSAN field:
Forms![Form - License Data Input]![SSAN]
This is so that when I click the print button, I get an MDL for that one
person and not for everyone in the database. I've done this in a similar
database for work order production and it works fine. However, in this MDL
database, it doesn't work. Instead of Access showing me the driver's
license for the person I just entered/edited, I get a dialog box on the
screen that repeats the forms statement above.
I don't understand why this statement should work for the work order
database and not for the MDL database. Can anyone tell me what I'm doing
wrong and how to fix it? I'm using Access 2000 for this application.
Thanks,
John.
--
NorthStar
Always do right. This will gratify some people and astonish the rest.
Spam protected -- Remove _NadaSpam_ to e-mail