dbTalk Databases Forums  

Emailing form record VB command

comp.database.ms-access comp.database.ms-access


Discuss Emailing form record VB command in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SJ Mo2
 
Posts: n/a

Default Emailing form record VB command - 01-29-2004 , 12:56 PM






I have created and written a VB command button to save a record on a
form and send an email using:

DoCmd.SendObject acSendForm

It works well but sends the entire table whereas I only want to send
the current record. Is there a specific command to do this?

Thanks

sjmo2 (AT) hotmail (DOT) com

Reply With Quote
  #2  
Old   
MazeMan
 
Posts: n/a

Default Re: Emailing form record VB command - 01-30-2004 , 06:42 AM






No. But there is an easy workaround.
Just apply a filter on the (primary key value of the) record you want to
send before executing the SendObject method . You can use the default
shortcut menu of a form to do so. Just click on the Filter Selection item.

Good luck!

"SJ Mo2" <sjmo2 (AT) hotmail (DOT) com> schreef in bericht
news:ed609370.0401291056.1acde244 (AT) posting (DOT) google.com...
Quote:
I have created and written a VB command button to save a record on a
form and send an email using:

DoCmd.SendObject acSendForm

It works well but sends the entire table whereas I only want to send
the current record. Is there a specific command to do this?

Thanks

sjmo2 (AT) hotmail (DOT) com



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.