A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

RESUBMITTAL - Send New Record Only



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2009, 03:20 PM posted to microsoft.public.access.gettingstarted
Lyne Savage[_2_]
external usenet poster
 
Posts: 22
Default RESUBMITTAL - Send New Record Only

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?

  #2  
Old September 29th, 2009, 03:50 PM posted to microsoft.public.access.gettingstarted
John... Visio MVP
external usenet poster
 
Posts: 900
Default RESUBMITTAL - Send New Record Only

"Lyne Savage" wrote in message
...
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

  #3  
Old September 29th, 2009, 03:59 PM posted to microsoft.public.access.gettingstarted
Lyne Savage[_2_]
external usenet poster
 
Posts: 22
Default RESUBMITTAL - Send New Record Only

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" wrote in message
...
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


  #4  
Old September 29th, 2009, 04:44 PM posted to microsoft.public.access.gettingstarted
Gina Whipp
external usenet poster
 
Posts: 3,500
Default RESUBMITTAL - Send New Record Only

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" wrote in message
...
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" wrote in message
...
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




  #5  
Old October 1st, 2009, 12:55 PM posted to microsoft.public.access.gettingstarted
Lyne Savage[_2_]
external usenet poster
 
Posts: 22
Default RESUBMITTAL - Send New Record Only

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" wrote in message
...
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" wrote in message
...
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





  #6  
Old October 1st, 2009, 05:29 PM posted to microsoft.public.access.gettingstarted
Gina Whipp
external usenet poster
 
Posts: 3,500
Default RESUBMITTAL - Send New Record Only

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" wrote in message
...
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" wrote in message
...
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" wrote in message
...
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







  #7  
Old October 1st, 2009, 06:44 PM posted to microsoft.public.access.gettingstarted
KenSheridan via AccessMonster.com
external usenet poster
 
Posts: 1,610
Default RESUBMITTAL - Send New Record Only

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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.