19d24 After I enter data in Form, I’d like them sent by email as .xls at
Sign Up |  Live StatsLive Stats    Articles 37,302| Comments 176,965| Members 19,397, Newest birinder| Online 365
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » After I enter data in Form, I’d like them sent by email as .xls at

After I enter data in Form, I’d like them sent by email as .xls at

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 100 USD (20%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
RE: On a tablet notebook, can OneNote be used to enter data into Acces Goldentree Information Technology 0 28-Jul-2006 08:33 AM
How do I send an Access database to someone else to enter data? MHerzberg Information Technology 4 10-Nov-2005 21:09 PM
click on image to enter data to a table or form mtarabochia Information Technology 0 10-Nov-2005 21:08 PM
Send email from data access form - Subject Problem Michael J. Earl Information Technology 5 07-Nov-2005 11:26 AM
Enter Data in a Blank Field with 43,000 records mjsull Information Technology 0 27-Oct-2005 08:59 AM


Tags
data, email, enter, form, i’d, sent, them, xls
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:04 AM
Adnan's Avatar Adnan
Guest
 
Posts: n/a
   
   
After I enter data in Form, I’d like them sent by email as .xls at

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi dear MVPs,
After I fill the form I would like to create a button that would email
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9623-after-i-enter-data-form-i.html
current filled form to someone as an excel attachment, how would I do this?

Any help is greatly appreciated!
Thank you,
Adnan

--
Please post all your inquiries on this community so we can all benefit -
Thank you!

*







Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:04 AM
Tom Wickerath's Avatar Tom Wickerath
Guest
 
Posts: n/a
   
   
RE: After I enter data in Form, I’d like them sent by email as .xls at

Hi Adnan,

> Hi dear MVPs,


You should not be restricting your question to MVP's. There are many people
who are regular contributors to this newsgroup, who are perfectly capable of
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
answering your question, but they are not MVP's. I was one of these people
until just April of this year.

1.) First, your form must include a primary key field, or a field set as a
unique index. This will give you a way to identify the particular record that
you wish to export.

2.) Create a new query that includes the fields you wish to export to your
Excel spreadsheet. This might include all of the fields in the form, or a
subset of the fields. Add a criteria for the primary key or unique index
field that points to the open form. Something like this:

Criteria: [Forms]![frmPeople]![CustomerID]

for a form that is named "frmPeople", and a unique indexed field named
"CustomerID". Name the query "qryExcelExport".

3.) Create a command button on your form, and name it something like
"cmdSendUsingExcel". Add the following code for the click event procedure of
this button:

Private Sub cmdSendUsingExcel_Click()
On Error GoTo ProcError

DoCmd.SendObject ObjectType:=acQuery, _
ObjectName:="qryExcelExport", _
OutputFormat:=acFormatXLS, EditMessage:=True

ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure cmdSendUsingExcel_Click..."
Resume ExitProc
End Sub


If you have other information available on your form, such as the person's
e-mail address, you can add the optional "To:=" argument to the
DoCmd.SendObject statement.


Tom Wickerath, Microsoft Access MVP

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623

"Adnan" wrote:

> Hi dear MVPs,
> After I fill the form I would like to create a button that would email
> current filled form to someone as an excel attachment, how would I do this?
>
> Any help is greatly appreciated!
> Thank you,
> Adnan

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:04 AM
Adnan's Avatar Adnan
Guest
 
Posts: n/a
   
   
RE: After I enter data in Form, I’d like them sent by email as .xl

Tom,
With the description I’ve provided this is exactly what I was looking for,
but there was something I didn’t previously mention, would it be possible to
email current records (export them first into my .xls format I already have
on my Desktop, also input these records into curtain cells such as: A4, A5,
etc not including deaders) and then e-mail it (have it attached and ready
uploaded on the email (outlook) body.

What I’m trying to do is, when a customer fills the form he/she can also
email it as an .xls attachment with a single click from an optional button
(with my .xls format).

P.S – Speaking of MVP’s, you are right, but I kind of consider/respect//call
these contributors MVP’s, too.

Congratulation/happy your new/additional recent title (MVP) ****

Thank you much Tom!
Adnan

--
Please post all your inquiries on this community so we can all benefit -
Thank you!


"Tom Wickerath" wrote:

> Hi Adnan,
>
> > Hi dear MVPs,

>
> You should not be restricting your question to MVP's. There are many people
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
> who are regular contributors to this newsgroup, who are perfectly capable of
> answering your question, but they are not MVP's. I was one of these people
> until just April of this year.
>
> 1.) First, your form must include a primary key field, or a field set as a
> unique index. This will give you a way to identify the particular record that
> you wish to export.
>
> 2.) Create a new query that includes the fields you wish to export to your
> Excel spreadsheet. This might include all of the fields in the form, or a
> subset of the fields. Add a criteria for the primary key or unique index
> field that points to the open form. Something like this:
>
> Criteria: [Forms]![frmPeople]![CustomerID]
>
> for a form that is named "frmPeople", and a unique indexed field named
> "CustomerID". Name the query "qryExcelExport".
>
> 3.) Create a command button on your form, and name it something like
> "cmdSendUsingExcel". Add the following code for the click event procedure of
> this button:
>
> Private Sub cmdSendUsingExcel_Click()
> On Error GoTo ProcError
>
> DoCmd.SendObject ObjectType:=acQuery, _
> ObjectName:="qryExcelExport", _
> OutputFormat:=acFormatXLS, EditMessage:=True
>
> ExitProc:
> Exit Sub
> ProcError:
> MsgBox "Error " & Err.Number & ": " & Err.Description, _
> vbCritical, "Error in procedure cmdSendUsingExcel_Click..."
> Resume ExitProc
> End Sub
>
>
> If you have other information available on your form, such as the person's
> e-mail address, you can add the optional "To:=" argument to the
> DoCmd.SendObject statement.
>
>
> Tom Wickerath, Microsoft Access MVP
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "Adnan" wrote:
>
> > Hi dear MVPs,
> > After I fill the form I would like to create a button that would email
> > current filled form to someone as an excel attachment, how would I do this?
> >
> > Any help is greatly appreciated!
> > Thank you,
> > Adnan

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:04 AM
Tom Wickerath's Avatar Tom Wickerath
Guest
 
Posts: n/a
   
   
RE: After I enter data in Form, I’d like them sent by email as .xl

Hi Adnan,

You can do this, but not by using DoCmd.SendObject, since that is intended
to send an object (table, query, etc.) that is within your database. You'll
need to use Outlook, or some other e-mail client that exposes a programmable
object model. Outlook Express is ruled out in this case.

I suggest that you take a look at this article:
http://msdn.microsoft.com/library/de..._ac_olauto.asp

You might also want to download the XP Automation Help file from Microsoft
(XPAutomation.chm):
http://www.microsoft.com/downloads/d...DisplayLang=en

and perhaps this one:

Access 2003 Sample: Using Automation with Access and Outlook
http://www.microsoft.com/downloads/d...DisplayLang=en

Finally, take a look at this thread to see if it gives you any useful ideas:
http://www.microsoft.com/office/comm...2-2d7014c31602


Tom Wickerath, Microsoft Access MVP

http://www.access.qbuilt.com/html/ex...tributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________

"Adnan" wrote:

> Tom,
> With the description I’ve provided this is exactly what I was looking for,
> but there was something I didn’t previously mention, would it be possible to
> email current records (export them first into my .xls format I already have
> on my Desktop, also input these records into curtain cells such as: A4, A5,
> etc not including deaders) and then e-mail it (have it attached and ready
> uploaded on the email (outlook) body.
>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
> What I’m trying to do is, when a customer fills the form he/she can also
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
> email it as an .xls attachment with a single click from an optional button
> (with my .xls format).
>
> P.S – Speaking of MVP’s, you are right, but I kind of consider/respect//call
> these contributors MVP’s, too.
>
> Congratulation/happy your new/additional recent title (MVP) ****
>
> Thank you much Tom!
> Adnan

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:04 AM
Adnan's Avatar Adnan
Guest
 
Posts: n/a
   
   
RE: After I enter data in Form, I’d like them sent by email as .xl

I was thing of making a button to export current filled form’s data into a
saved excel spreadsheet then another button to email that excel saved
spreadsheet. I can do the second but not the first (exporting current data
into excel). I know I’ve seen some code for this somewhere in this community.
Got to search again…

Other then thin, you were greatly helpful. Thank you Tom,
Adnan, Computer Science Student
Kosovo

--
Please post all your inquiries on this community so we can all benefit -
Thank you!


"Tom Wickerath" wrote:

> Hi Adnan,
>
> You can do this, but not by using DoCmd.SendObject, since that is intended
> to send an object (table, query, etc.) that is within your database. You'll
> need to use Outlook, or some other e-mail client that exposes a programmable
> object model. Outlook Express is ruled out in this case.
>
> I suggest that you take a look at this article:
> http://msdn.microsoft.com/library/de..._ac_olauto.asp
>
> You might also want to download the XP Automation Help file from Microsoft
> (XPAutomation.chm):
> http://www.microsoft.com/downloads/d...DisplayLang=en
>
> and perhaps this one:
>
> Access 2003 Sample: Using Automation with Access and Outlook
> http://www.microsoft.com/downloads/d...DisplayLang=en
>
> Finally, take a look at this thread to see if it gives you any useful ideas:
> http://www.microsoft.com/office/comm...2-2d7014c31602
>
>
> Tom Wickerath, Microsoft Access MVP
>
> http://www.access.qbuilt.com/html/ex...tributors.html
> http://www.access.qbuilt.com/html/search.html
> __________________________________________
>
> "Adnan" wrote:
>
> > Tom,
> > With the description I’ve provided this is exactly what I was looking for,
> > but there was something I didn’t previously mention, would it be possible to
> > email current records (export them first into my .xls format I already have
> > on my Desktop, also input these records into curtain cells such as: A4, A5,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
> > etc not including deaders) and then e-mail it (have it attached and ready
> > uploaded on the email (outlook) body.
> >
> > What I’m trying to do is, when a customer fills the form he/she can also
> > email it as an .xls attachment with a single click from an optional button
> > (with my .xls format).
> >
> > P.S – Speaking of MVP’s, you are right, but I kind of consider/respect//call
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623
> > these contributors MVP’s, too.
> >
> > Congratulation/happy your new/additional recent title (MVP) ****
> >
> > Thank you much Tom!
> > Adnan

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:04 AM
Ron2006's Avatar Ron2006
Guest
 
Posts: n/a
   
   
Re: After I enter data in Form, I'd like them sent by email as .xl

  Donate Today!  
Don't forget to address the potential of a user forgetting to export
the data but still pressing the email button, thereby sending the
previously exported data instead of the current data.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9623

(Don't enable the second button until the first one has been pressed.)

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Nitnem Gutka - Gurmukhi...
Today 08:09 AM
14 Replies, 16,361 Views
Map shows world's 'most...
Today 07:16 AM
13 Replies, 158 Views
Why are There so Many...
Today 06:19 AM
49 Replies, 4,794 Views
Learn Punjabi Yourself...
Today 05:41 AM
15 Replies, 7,601 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 05:32 AM
167 Replies, 4,287 Views
The Great Imp Debate
Today 05:28 AM
32 Replies, 477 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 05:16 AM
299 Replies, 7,375 Views
Do you believe in...
Today 05:08 AM
166 Replies, 3,479 Views
Textbooks Spotted...
Today 04:53 AM
5 Replies, 66 Views
BHOOTS (Ghosts) and...
Today 04:22 AM
92 Replies, 13,725 Views
Thought of the Moment!
Today 04:01 AM
105 Replies, 4,986 Views
Panjabi
Today 02:14 AM
9 Replies, 203 Views
Fresno Sikh Who Was...
Today 01:30 AM
0 Replies, 38 Views
Guns of the Nihangs...
Today 01:24 AM
0 Replies, 41 Views
Saudi Woman Makes...
Today 01:01 AM
0 Replies, 32 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 08:55 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.53084 seconds with 32 queries
0