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
|
|
0
|
|
|
|
Reply
|
Utf
|
12/22/2009 2:42:02 PM |
|
1. Run the macro in the 'pick the date from a calendar' function. Make one of
the last lines of the function read something like below. That way the date
should be in the text box before the macro runs.
DoCmd.RunMacro "Print Sales"
2. I'm assuming that you put this in the criteria of the query. Is the
frmAuthorization still open? It needs to be for this to work.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
"Mary Beth" wrote:
> 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
>
|
|
0
|
|
|
|
Reply
|
Utf
|
12/22/2009 3:54:01 PM
|
|
This works great (I got both 1 and 2 to work)!! Thank you for your help!
"Jerry Whittle" wrote:
> 1. Run the macro in the 'pick the date from a calendar' function. Make one of
> the last lines of the function read something like below. That way the date
> should be in the text box before the macro runs.
>
> DoCmd.RunMacro "Print Sales"
>
> 2. I'm assuming that you put this in the criteria of the query. Is the
> frmAuthorization still open? It needs to be for this to work.
>
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "Mary Beth" wrote:
>
> > 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
> >
|
|
0
|
|
|
|
Reply
|
Utf
|
12/22/2009 8:33:01 PM
|
|
I am testing this today, and am having problems again.
1. For the calendar & email. I put the RunMacro event in the On Exit event
of the calendar command button. Also, I put -
Forms!frmAuthorization!ConsumerID - in the ConsumerID field of the query
which the report is based. When I Exit the command button after putting in
my date, a box pops up with Forms!frmAuthorization!ConsumerID on it. What is
wrong? How do I fix this?
2. Also, I put a lock/unlock button on the database using code to lock the
form, and set AllowAdditions, etc. to No, but I am still able to change the
date using the calendar button. How do I prevent this from happening?
"Mary Beth" wrote:
> This works great (I got both 1 and 2 to work)!! Thank you for your help!
>
> "Jerry Whittle" wrote:
>
> > 1. Run the macro in the 'pick the date from a calendar' function. Make one of
> > the last lines of the function read something like below. That way the date
> > should be in the text box before the macro runs.
> >
> > DoCmd.RunMacro "Print Sales"
> >
> > 2. I'm assuming that you put this in the criteria of the query. Is the
> > frmAuthorization still open? It needs to be for this to work.
> >
> > --
> > Jerry Whittle, Microsoft Access MVP
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> >
> > "Mary Beth" wrote:
> >
> > > 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
> > >
|
|
0
|
|
|
|
Reply
|
Utf
|
12/23/2009 6:32:01 PM
|
|
Scratch the part about the box popping up. It's not doing it anymore.
I've noticed that the date in the table does not update to the date entered
into the field. I tried to Requery in VBA and also in the macro and the
wrong date is in the report. Any ideas?
"Mary Beth" wrote:
> I am testing this today, and am having problems again.
>
> 1. For the calendar & email. I put the RunMacro event in the On Exit event
> of the calendar command button. Also, I put -
> Forms!frmAuthorization!ConsumerID - in the ConsumerID field of the query
> which the report is based. When I Exit the command button after putting in
> my date, a box pops up with Forms!frmAuthorization!ConsumerID on it. What is
> wrong? How do I fix this?
>
> 2. Also, I put a lock/unlock button on the database using code to lock the
> form, and set AllowAdditions, etc. to No, but I am still able to change the
> date using the calendar button. How do I prevent this from happening?
>
>
>
>
>
> "Mary Beth" wrote:
>
> > This works great (I got both 1 and 2 to work)!! Thank you for your help!
> >
> > "Jerry Whittle" wrote:
> >
> > > 1. Run the macro in the 'pick the date from a calendar' function. Make one of
> > > the last lines of the function read something like below. That way the date
> > > should be in the text box before the macro runs.
> > >
> > > DoCmd.RunMacro "Print Sales"
> > >
> > > 2. I'm assuming that you put this in the criteria of the query. Is the
> > > frmAuthorization still open? It needs to be for this to work.
> > >
> > > --
> > > Jerry Whittle, Microsoft Access MVP
> > > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> > >
> > >
> > > "Mary Beth" wrote:
> > >
> > > > 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
> > > >
|
|
0
|
|
|
|
Reply
|
Utf
|
12/23/2009 6:54:05 PM
|
|
|
4 Replies
224 Views
(page loaded in 0.612 seconds)
Similiar Articles: open a Report to a specific record - microsoft.public.access ...If it were text, you'd need quotes around the value: DoCmd.OpenReport ("report test ... open a Report to a specific record - microsoft.public.access ... Hello ... Add a specific Record to a Table based on a check box - microsoft ...... on a > > > > ProposalForm, ServiceTypes need to ... Add a specific Record to a Table based on a check box ... table which will allow you to add a record ... report based ... Query which Value Returns Previous Record - microsoft.public ...... if the value (example John Smith) is found report back not only that specific record ... If there is a match I need to show the previous record as well as this record ... Command to run access, open to specific form and specific record ...open a Report to a specific record - microsoft.public ... open form to specific record, record pointer, dim rs Using MS Access /open form to specific record ... I need a ... Printing Specific Data - microsoft.public.access.reports ...With VB6, how can i print to specific printer? I need to print a Microsoft Data Report to a specific ... Print specific records from a datasheet. Select the data by using ... Open form to specific record from button on continuous form ...It will need to be on the form itself, so it appears with every record ... open a Report to a specific record - microsoft.public.access ... Open form to specific record ... Creating Specific Record Count Based on User Input - microsoft ...Show image for specific record on report based on yes/no value ... ... Opening ... new record ... based on current record ... Field I need to create a ... specific record ... Option Boxes - microsoft.public.access.reports... printed on the form in the place where the box is situated on my report. If a specific record ... the wizard will keep adding options until you get as many as you need ... Open a form, Go to specific record without filtering the form ...... record and still have all of the other records available for searching? It's > >>> like I need a ... open a Report to a specific record - microsoft.public.access ... ... Remove certain group record from report - microsoft.public.access ...If you need criteria under any other fields, add ... report - microsoft.public.access ..... below 40 records or ... describe a report (or form), you should use specific ... Report displaying all records. Need a specific record to show in ...Microsoft Access Discussion > Reports ... Hi guys. I have very little experience with databases but have been tasked with ... This technique, with OpenReport: http ... Need to count specific records in a report.: Microsoft, Access, 2007I have a series of yes/no check boxes in my database. On a report, I would like to count only the records that are checked. I have used this code in the ... Filtering User-Specific Report Data in SQL Server Reporting ...Filtering User-Specific Report Data in SQL ... lot of organizations have a need to display data specific to the user accessing the report. ... we are going to update the record ... Filter: Limit the number of records in a view or report - Access ...To filter for records that contain a specific value in a field, use Filter By ... If you are using the Filter property of a report to filter records, you need to specify ... How to Obtain Police Records | eHow.comFor instance, different types of reports include criminal background checks and police reports of specific incidents. To get certain types of records, you may need to ... 7/13/2012 12:35:30 AM
|