|
|
| Next: Text field as query criteria |
| Author |
Message |
Lyne Savage External

Since: Sep 10, 2009 Posts: 10
|
Posted: Tue Sep 29, 2009 7:20 am Post subject: RESUBMITTAL - Send New Record Only Archived from groups: microsoft>public>access>gettingstarted (more info?) |
|
|
I posted this in General 5 days ago and no one has answered me yet...
I have a submit button in my form. The form will be used for data entry. On
the OnClick option of the sumbit button,I would like to have the record that
was just created sent to someone by e-mail. Right now, I can only get it to
send the whole table, but I would like it to send only the last record of
that table. Is this possible? |
|
| Back to top |
|
 |
John... Visio MVP External

Since: Jan 08, 2009 Posts: 41
|
Posted: Tue Sep 29, 2009 10:50 am Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
"Lyne Savage" <LyneSavage RemoveThis @discussions.microsoft.com> wrote in message
news:AB9D75DD-B630-47EF-81C4-209B69E3FA51@microsoft.com...
>I posted this in General 5 days ago and no one has answered me yet...
>
> I have a submit button in my form. The form will be used for data entry.
> On
> the OnClick option of the sumbit button,I would like to have the record
> that
> was just created sent to someone by e-mail. Right now, I can only get it
> to
> send the whole table, but I would like it to send only the last record of
> that table. Is this possible?
What does the relevant code in the OnClick look like?
John... Visio MVP |
|
| Back to top |
|
 |
Lyne Savage External

Since: Sep 10, 2009 Posts: 10
|
Posted: Tue Sep 29, 2009 10:50 am Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
It's a Macro...my training for Access has not yet begun (next week) and I'm
jumping the gun a bit...
"John... Visio MVP" wrote:
> "Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
> news:AB9D75DD-B630-47EF-81C4-209B69E3FA51@microsoft.com...
> >I posted this in General 5 days ago and no one has answered me yet...
> >
> > I have a submit button in my form. The form will be used for data entry.
> > On
> > the OnClick option of the sumbit button,I would like to have the record
> > that
> > was just created sent to someone by e-mail. Right now, I can only get it
> > to
> > send the whole table, but I would like it to send only the last record of
> > that table. Is this possible?
>
>
> What does the relevant code in the OnClick look like?
>
> John... Visio MVP
>
> |
|
| Back to top |
|
 |
Gina Whipp External

Since: Sep 25, 2003 Posts: 426
|
Posted: Tue Sep 29, 2009 11:44 am Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Lyne,
The key to sending *the new record* is determining how Access knows it's a
new record. Which sounds like what is missing. Please post the Macro
Actions. Also, is this and unbound form?
--
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
http://www.regina-whipp.com/index_files/TipList.htm
"Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
news:9C3D3712-92AB-432A-9E3D-99DB95553ACB@microsoft.com...
> It's a Macro...my training for Access has not yet begun (next week) and
> I'm
> jumping the gun a bit...
>
> "John... Visio MVP" wrote:
>
>> "Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
>> news:AB9D75DD-B630-47EF-81C4-209B69E3FA51@microsoft.com...
>> >I posted this in General 5 days ago and no one has answered me yet...
>> >
>> > I have a submit button in my form. The form will be used for data
>> > entry.
>> > On
>> > the OnClick option of the sumbit button,I would like to have the record
>> > that
>> > was just created sent to someone by e-mail. Right now, I can only get
>> > it
>> > to
>> > send the whole table, but I would like it to send only the last record
>> > of
>> > that table. Is this possible?
>>
>>
>> What does the relevant code in the OnClick look like?
>>
>> John... Visio MVP
>>
>> |
|
| Back to top |
|
 |
Lyne Savage External

Since: Sep 10, 2009 Posts: 10
|
Posted: Thu Oct 01, 2009 4:55 am Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
The macro is made with SendObject...which sends the table that the form is
bound to. I don't know how to create a macro that will send only the new
record...
"Gina Whipp" wrote:
> Lyne,
>
> The key to sending *the new record* is determining how Access knows it's a
> new record. Which sounds like what is missing. Please post the Macro
> Actions. Also, is this and unbound form?
>
> --
> Gina Whipp
>
> "I feel I have been denied critical, need to know, information!" - Tremors
> II
>
> http://www.regina-whipp.com/index_files/TipList.htm
>
> "Lyne Savage" <LyneSavage.RemoveThis@discussions.microsoft.com> wrote in message
> news:9C3D3712-92AB-432A-9E3D-99DB95553ACB@microsoft.com...
> > It's a Macro...my training for Access has not yet begun (next week) and
> > I'm
> > jumping the gun a bit...
> >
> > "John... Visio MVP" wrote:
> >
> >> "Lyne Savage" <LyneSavage.RemoveThis@discussions.microsoft.com> wrote in message
> >> news:AB9D75DD-B630-47EF-81C4-209B69E3FA51@microsoft.com...
> >> >I posted this in General 5 days ago and no one has answered me yet...
> >> >
> >> > I have a submit button in my form. The form will be used for data
> >> > entry.
> >> > On
> >> > the OnClick option of the sumbit button,I would like to have the record
> >> > that
> >> > was just created sent to someone by e-mail. Right now, I can only get
> >> > it
> >> > to
> >> > send the whole table, but I would like it to send only the last record
> >> > of
> >> > that table. Is this possible?
> >>
> >>
> >> What does the relevant code in the OnClick look like?
> >>
> >> John... Visio MVP
> >>
> >>
>
>
> |
|
| Back to top |
|
 |
Gina Whipp External

Since: Sep 25, 2003 Posts: 426
|
Posted: Thu Oct 01, 2009 12:29 pm Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Lyne,
You can base the Macro on a query and add a Where Condition to the query...
e: Forms![FormName]![NameOfKeyThatWOuldFiltereMailMessage]
--
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
http://www.regina-whipp.com/index_files/TipList.htm
"Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
news:EEEC0038-9136-4FEB-857F-8999B428AADD@microsoft.com...
> The macro is made with SendObject...which sends the table that the form is
> bound to. I don't know how to create a macro that will send only the new
> record...
>
> "Gina Whipp" wrote:
>
>> Lyne,
>>
>> The key to sending *the new record* is determining how Access knows it's
>> a
>> new record. Which sounds like what is missing. Please post the Macro
>> Actions. Also, is this and unbound form?
>>
>> --
>> Gina Whipp
>>
>> "I feel I have been denied critical, need to know, information!" -
>> Tremors
>> II
>>
>> http://www.regina-whipp.com/index_files/TipList.htm
>>
>> "Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
>> news:9C3D3712-92AB-432A-9E3D-99DB95553ACB@microsoft.com...
>> > It's a Macro...my training for Access has not yet begun (next week) and
>> > I'm
>> > jumping the gun a bit...
>> >
>> > "John... Visio MVP" wrote:
>> >
>> >> "Lyne Savage" <LyneSavage.TakeThisOut@discussions.microsoft.com> wrote in message
>> >> news:AB9D75DD-B630-47EF-81C4-209B69E3FA51@microsoft.com...
>> >> >I posted this in General 5 days ago and no one has answered me yet...
>> >> >
>> >> > I have a submit button in my form. The form will be used for data
>> >> > entry.
>> >> > On
>> >> > the OnClick option of the sumbit button,I would like to have the
>> >> > record
>> >> > that
>> >> > was just created sent to someone by e-mail. Right now, I can only
>> >> > get
>> >> > it
>> >> > to
>> >> > send the whole table, but I would like it to send only the last
>> >> > record
>> >> > of
>> >> > that table. Is this possible?
>> >>
>> >>
>> >> What does the relevant code in the OnClick look like?
>> >>
>> >> John... Visio MVP
>> >>
>> >>
>>
>>
>> |
|
| Back to top |
|
 |
KenSheridan via AccessMon External

Since: May 16, 2009 Posts: 68
|
Posted: Thu Oct 01, 2009 2:10 pm Post subject: Re: RESUBMITTAL - Send New Record Only [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
A further point is that the macro should ensure that the current record is
saved (by calling the RunCommand action with the SaveRecord command) before
calling the SendObject action. Otherwise if the user has just entered data
for a new record in the form the record will not yet have been saved to the
table, so a query would not pick it up.
Ken Sheridan
Stafford, England
Lyne Savage wrote:
>The macro is made with SendObject...which sends the table that the form is
>bound to. I don't know how to create a macro that will send only the new
>record...
>
>> Lyne,
>>
>[quoted text clipped - 23 lines]
>> >>
>> >> John... Visio MVP
--
Message posted via http://www.accessmonster.com |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|