18dd0 Send email from data access form - Subject Problem
Sign Up |  Live StatsLive Stats    Articles 37,350| Comments 177,415| Members 19,424, Newest yashpal singh| Online 359
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Send email from data access form - Subject Problem

Send email from data access form - Subject Problem

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Send access objects to email accounts stored in access Neket Information Technology 1 28-Jul-2006 08:26 AM
After I enter data in Form, I’d like them sent by email as .xls at Adnan Information Technology 5 28-Jul-2006 08:04 AM
Sending access form via email Patty Information Technology 1 10-Nov-2005 21:09 PM
How do I send an Access database to someone else to enter data? MHerzberg Information Technology 4 10-Nov-2005 21:09 PM
RE: How do I send out an email off a query in access? jmo Information Technology 0 27-Oct-2005 08:58 AM


Tags
send, email, data, access, form, subject, problem
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 06-Nov-2005, 12:37 PM
Michael J. Earl's Avatar Michael J. Earl
Guest
 
Posts: n/a
   
   
Send email from data access form - Subject Problem

  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
I am trying to create an email send from a data access form.

No problem to enter the address:- just enter mailto:xyx@xxxx.com in the
email address field.

No problem to display required text in the Hyperlink field on the form -
Hyperlink.ControlSource: Expr2: "email Web Application Job No " & [JobCode]
(where JobCode is another field (integer) on the form) eg. "email Web
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6778-send-email-data-access-form-subject.html
Application Job No 1333" ......

But how can I get the same string to concatenate and display correctly in
the "Subject" Field of the Hyperlink / new email, without resorting to
separate script?
It looks like ought to be possible but I just cannot make it work.
Any ideas?
If it is not possible - has anybody got a code snippet I could insert?

Help please

mike

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-Nov-2005, 12:37 PM
Andy Couch - UK Access User Group's Avatar Andy Couch - UK Access User Group
Guest
 
Posts: n/a
   
   
RE: Send email from data access form - Subject Problem

Here is an example of a code snippet, you will need to include the outlook
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
refernce library.

The biggest problem with linking e-mails to outlook, are the various changes
Microsoft keep making to outlook in service packs, which tends to make the
whole process more difficult.

The following is fairly basic but should get you started.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778

Sub Mail_Send(Subject As String, Body As String, ToAddress As String,
DatabaseFile As String)
Dim objOL As Outlook.Application
Dim Trymail As Integer
Trymail = 0
RetryMail:
Trymail = Trymail + 1
On Error Resume Next
Set objOL = GetObject(, "Outlook.Application")
If Err.Number <> 0 Then
MsgBox "Start Your EMail System The Press OK", vbInformation, "EMail
Not Running"
If Trymail > 5 Then
MsgBox "Aborting Operation Unable To Start E-Mail"
Exit Sub
End If
GoTo RetryMail
End If
On Error GoTo 0

Dim ObjFolder As Outlook.MAPIFolder
Dim objNameSpace As Outlook.NameSpace
Set objNameSpace = objOL.GetNamespace("MAPI")
Call objNameSpace.Logon("Microsoft Outlook", "", False, True)
' Set ObjFolder = objNameSpace.GetDefaultFolder(olFolderInbox)
' ObjFolder.Display
Set objMail = objOL.CreateItem(olMailItem)
objMail.Subject = Subject
objMail.Body = Body
objMail.To = ToAddress

objMail.Display

Set objOL = Nothing
End Sub

Hope this helps.
Reply With Quote
  #3 (permalink)  
Old 07-Nov-2005, 11:25 AM
Michael J. Earl's Avatar Michael J. Earl
Guest
 
Posts: n/a
   
   
Re: Send email from data access form - Subject Problem

Andy,

Thanks for the reply and code snippet....

But are you saying that I definitely can't set the subject in Href using
field information
eg.mailto:dfdfdhdhh@com?Subject=DataAccesssPages!M yDataAccessPage!Hypperlink
..text?

Please confirm
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778

Mike

"Andy Couch - UK Access User Group"
wrote in message
news:74AE0FF9-8012-4AAF-9EDF-567CBBAA13E3@microsoft.com...
> Here is an example of a code snippet, you will need to include the outlook
> refernce library.
>
> The biggest problem with linking e-mails to outlook, are the various

changes
> Microsoft keep making to outlook in service packs, which tends to make the
> whole process more difficult.
>
> The following is fairly basic but should get you started.
>
> Sub Mail_Send(Subject As String, Body As String, ToAddress As String,
> DatabaseFile As String)
> Dim objOL As Outlook.Application
> Dim Trymail As Integer
> Trymail = 0
> RetryMail:
> Trymail = Trymail + 1
> On Error Resume Next
> Set objOL = GetObject(, "Outlook.Application")
> If Err.Number <> 0 Then
> MsgBox "Start Your EMail System The Press OK", vbInformation,

"EMail
> Not Running"
> If Trymail > 5 Then
> MsgBox "Aborting Operation Unable To Start E-Mail"
> Exit Sub
> End If
> GoTo RetryMail
> End If
> On Error GoTo 0
>
> Dim ObjFolder As Outlook.MAPIFolder
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
> Dim objNameSpace As Outlook.NameSpace
> Set objNameSpace = objOL.GetNamespace("MAPI")
> Call objNameSpace.Logon("Microsoft Outlook", "", False, True)
> ' Set ObjFolder = objNameSpace.GetDefaultFolder(olFolderInbox)
> ' ObjFolder.Display
> Set objMail = objOL.CreateItem(olMailItem)
> objMail.Subject = Subject
> objMail.Body = Body
> objMail.To = ToAddress
>
> objMail.Display
>
> Set objOL = Nothing
> End Sub
>
> Hope this helps.



Reply With Quote
  #4 (permalink)  
Old 07-Nov-2005, 11:25 AM
Andy Couch - UK Access User Group's Avatar Andy Couch - UK Access User Group
Guest
 
Posts: n/a
   
   
Re: Send email from data access form - Subject Problem

No I am not saying that you definitely can't set the subject in Href using
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
field information, but you could try setting it via some code if you are
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
having problems with your current approach.

Hope this gives you another avenue to investigate.

"Michael J. Earl" wrote:

> Andy,
>
> Thanks for the reply and code snippet....
>
> But are you saying that I definitely can't set the subject in Href using
> field information
> eg.mailto:dfdfdhdhh@com?Subject=DataAccesssPages!M yDataAccessPage!Hypperlink
> ..text?
>
> Please confirm
>
> Mike
>


Reply With Quote
  #5 (permalink)  
Old 07-Nov-2005, 11:26 AM
Michael J. Earl's Avatar Michael J. Earl
Guest
 
Posts: n/a
   
   
Re: Send email from data access form - Subject Problem

Looks like Href and Standard Hyperlink field settings can only parse
resolved, concatenated strings and one cannot use VB in Data Access Pages.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
Instead one must use scripting or HTML and I'm totally out of my depth in
both.
I found some HTML code on the Knowledge Base - but I have to admit I don't
know where to start - I don't even know whereabouts in the HTML to insert
it.
So I think I'm stuck.
Put together with some unresolved e-commerce dynamic web site problems with
NetObjects Fusion 8, it's not been the most productive weekend.

But as they:- "If you have been, thanks for listening."
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778

Mike


"Andy Couch - UK Access User Group"
wrote in message
news:1E8B3B89-7400-4DEF-8C72-46BC3583795E@microsoft.com...
> No I am not saying that you definitely can't set the subject in Href using
> field information, but you could try setting it via some code if you are
> having problems with your current approach.
>
> Hope this gives you another avenue to investigate.
>
> "Michael J. Earl" wrote:
>
> > Andy,
> >
> > Thanks for the reply and code snippet....
> >
> > But are you saying that I definitely can't set the subject in Href using
> > field information
> >

eg.mailto:dfdfdhdhh@com?Subject=DataAccesssPages!M yDataAccessPage!Hypperlink
> > ..text?
> >
> > Please confirm
> >
> > Mike
> >

>



Reply With Quote
  #6 (permalink)  
Old 07-Nov-2005, 11:26 AM
Andy Couch - UK Access User Group's Avatar Andy Couch - UK Access User Group
Guest
 
Posts: n/a
   
   
Re: Send email from data access form - Subject Problem

  Donate Today!  
Yea I probably directed you off in the wrong direction here. The kind of code
that I sent you would work in a standard access form, or work in ASP, or you
could get something similar to work in ASP.NET. I have a number of
applications which use ASP pages and Access databases for sophisticated
e-mailing, but I never use Data Access Pages, and would not recommend them
unless you have a very simple requirement, then they are too restrictive.

I remember seeing a sophisticated presentation on using Data Access pages,
and I kept thinking why bother, when their are much better technologies to
solve these problems.

My advise would be to use either .NET or standard ASP to achive your
functionality (as I presume you want it to work through a browser).

Sorry if I miss-directed you here.

"Michael J. Earl" wrote:

> Looks like Href and Standard Hyperlink field settings can only parse
> resolved, concatenated strings and one cannot use VB in Data Access Pages.
> Instead one must use scripting or HTML and I'm totally out of my depth in
> both.
> I found some HTML code on the Knowledge Base - but I have to admit I don't
> know where to start - I don't even know whereabouts in the HTML to insert
> it.
> So I think I'm stuck.
> Put together with some unresolved e-commerce dynamic web site problems with
> NetObjects Fusion 8, it's not been the most productive weekend.
>
> But as they:- "If you have been, thanks for listening."
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
>
> Mike
>
>
> "Andy Couch - UK Access User Group"
> wrote in message
> news:1E8B3B89-7400-4DEF-8C72-46BC3583795E@microsoft.com...
> > No I am not saying that you definitely can't set the subject in Href using
> > field information, but you could try setting it via some code if you are
> > having problems with your current approach.
> >
> > Hope this gives you another avenue to investigate.
> >
> > "Michael J. Earl" wrote:
> >
> > > Andy,
> > >
> > > Thanks for the reply and code snippet....
> > >
> > > But are you saying that I definitely can't set the subject in Href using
> > > field information
> > >

> eg.mailto:dfdfdhdhh@com?Subject=DataAccesssPages!M yDataAccessPage!Hypperlink
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6778
> > > ..text?
> > >
> > > Please confirm
> > >
> > > Mike
> > >

> >

>
>
>

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
Is Science a Religion?
Today 04:49 AM
17 Replies, 2,057 Views
UNITED SIKHS AID Team...
Today 03:19 AM
0 Replies, 21 Views
Woolwich Killing: The...
Today 03:05 AM
26 Replies, 281 Views
Abu Nusaybah, 'Friend'...
Today 02:33 AM
0 Replies, 35 Views
Stockholm riots throw...
Today 02:14 AM
10 Replies, 99 Views
How does Sikhi help you...
Today 02:04 AM
48 Replies, 1,222 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:52 AM
186 Replies, 4,653 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:41 AM
322 Replies, 7,726 Views
Paneer: what I have...
Yesterday 22:29 PM
8 Replies, 75 Views
How Many Sikhs Have...
Yesterday 21:55 PM
698 Replies, 51,739 Views
Transgenderism ... Right...
By Kaylee
Yesterday 17:55 PM
31 Replies, 1,382 Views
Rochester Gurdwara...
Yesterday 10:55 AM
2 Replies, 85 Views
US Congress panel passes...
Yesterday 04:22 AM
0 Replies, 46 Views
Harmeet Kaur Took the...
Yesterday 03:40 AM
0 Replies, 69 Views
Panjabi Alphabet Resource
24-May-2013 23:15 PM
12 Replies, 6,564 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 05: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.44571 seconds with 32 queries
0