M
Mary Beth
I have inherited a Nurse Assessment database and am trying to add the feature
of attaching a report to an email when the Assesment date field has been
filled in. The report must contain the specific person's record data from
the form which the Assessment date was just filled in.
The form is based off a table called 'tblAuthorization'
The report is based off of a query with 'tblConsumer' and
'tblAuthorization'.
I have the email function set up in a macro.
I have two problems I need help with and please, don't make this too
complicated, I have never done this before.
1. The person who created the database put a 'pick the date from a
calendar' function, so the user does not enter the cursor into the control
field. Because of this, the macro does not run on any event. I need to know
how I can trigger the macro to run when the date is filled in.
2. In testing, if I enter the date manually, the macro will be triggered to
run. The macro runs great, the email pops up to edit the message mode, but
the record is incorrect in the report. I tried putting -
Forms!frmAuthorization!ConsumerID - in the ConsumerID field in the query and
it pops up a box wanting the ConsumerID. I need the specific consumer data.
How can I accomplish both of these things?
Thanks,
Mary Beth
of attaching a report to an email when the Assesment date field has been
filled in. The report must contain the specific person's record data from
the form which the Assessment date was just filled in.
The form is based off a table called 'tblAuthorization'
The report is based off of a query with 'tblConsumer' and
'tblAuthorization'.
I have the email function set up in a macro.
I have two problems I need help with and please, don't make this too
complicated, I have never done this before.
1. The person who created the database put a 'pick the date from a
calendar' function, so the user does not enter the cursor into the control
field. Because of this, the macro does not run on any event. I need to know
how I can trigger the macro to run when the date is filled in.
2. In testing, if I enter the date manually, the macro will be triggered to
run. The macro runs great, the email pops up to edit the message mode, but
the record is incorrect in the report. I tried putting -
Forms!frmAuthorization!ConsumerID - in the ConsumerID field in the query and
it pops up a box wanting the ConsumerID. I need the specific consumer data.
How can I accomplish both of these things?
Thanks,
Mary Beth