473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Smart Tags

I need to create a smart tag that allows me to create "outlook tasks" from my Access Database.
Oct 23 '06 #1
2 2529
Tanis
143 100+
Open the form in design view. In the text boxes property select the Data tab. Never used them myself. More on smart tags here.

http://office.microsoft.com/en-gb/ma...504821033.aspx
Oct 23 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
Here is some code for the various outlook procedures. You could break them into functions in a module. Then use them as required.

Expand|Select|Wrap|Line Numbers
  1.  
  2. ' Start Outlook. . . If it is already running, you'll use the same instance... 
  3. Dim olApp As Outlook.Application 
  4. Set olApp = CreateObject("Outlook.Application") 
  5.  
  6. ' Logon.  Doesn't hurt if you are already running and logged on... 
  7. Dim olNs As Outlook.NameSpace 
  8. Set olNs = olApp.GetNamespace("MAPI") 
  9. olNs.Logon 
  10.  
  11. ' Create and Open a new contact. 
  12. Dim olItem As Outlook.ContactItem 
  13. Set olItem = olApp.CreateItem(olContactItem) 
  14.  
  15. ' Setup Contact information... 
  16. With olItem 
  17.     .FullName = "James Smith" 
  18.     .Birthday = "9/15/1975" 
  19.     .CompanyName = "Microsoft" 
  20.     .HomeTelephoneNumber = "704-555-8888" 
  21.     .Email1Address = "someone@microsoft.com" 
  22.     .JobTitle = "Developer" 
  23.     .HomeAddress = "111 Main St." & vbCr & "Charlotte, NC 28226" 
  24. End With 
  25.  
  26. ' Save Contact... 
  27. olItem.Save 
  28.  
  29. ' Create a new appointment. 
  30. Dim olAppt As Outlook.AppointmentItem 
  31. Set olAppt = olApp.CreateItem(olAppointmentItem) 
  32.  
  33. ' Set start time for 2-minutes from now... 
  34. olAppt.Start = Now() + (2# / 24# / 60#) 
  35.  
  36. ' Setup other appointment information... 
  37. With olAppt 
  38.     .Duration = 60 
  39.     .Subject = "Meeting to discuss plans..." 
  40.     .Body = "Meeting with " & olItem.FullName & " to discuss plans." 
  41.     .Location = "Home Office" 
  42.     .ReminderMinutesBeforeStart = 1 
  43.     .ReminderSet = True 
  44. End With 
  45.  
  46. ' Save Appointment... 
  47. olAppt.Save 
  48.  
  49. ' Send a message to your new contact. 
  50. Dim olMail As Outlook.MailItem 
  51. Set olMail = olApp.CreateItem(olMailItem) 
  52.  
  53. ' Fill out & send message... 
  54. olMail.To = olItem.Email1Address 
  55. olMail.Subject = "About our meeting..." 
  56. olMail.Body = _ 
  57.     "Dear " & olItem.FirstName & ", " & vbCr & vbCr & vbTab & _ 
  58.     "I'll see you in 2 minutes for our meeting!" & vbCr & vbCr & _ 
  59.     "Btw: I've added you to my contact list." 
  60. olMail.Send 
  61.  
  62. ' Clean up... 
  63. MsgBox "All done...", vbMsgBoxSetForeground 
  64. olNS.Logoff 
  65. Set olNs = Nothing 
  66. Set olMail = Nothing 
  67. Set olAppt = Nothing 
  68. Set olItem = Nothing 
  69. Set olApp = Nothing 
  70.  
  71.  
Oct 23 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: anon | last post by:
How *EXACTLY* does Smart Navigation work? (I would really really really like for this Smart Navigation to work in Mozilla.) The inner workings and the code is what I am looking for. Does it...
10
by: C Williams | last post by:
Hi, In a nutshell, my question is: how do i make a dll that I compile from vb.net code register and work like one compiled as an ActiveX dll in VB6? The IDE of my copy of visual basic.net does...
11
by: Ron | last post by:
Hello, I'm having an aggravating time getting the "html" spewed by Word 2003 to display correctly in a webpage. The situation here is that the people creating the documents only know Word, and...
1
by: Jyothi | last post by:
Hi All, Can anybody tell me how to create smart tags like what we see in MS word application? TIA, Jyothi
1
by: C Williams | last post by:
Hi, I have downloaded the 2003 Smart Tag SDK and am attempting to run its samples. I installed the sdk and registered the visual basic.net sample. However, no office apps (word, excel, ppt)...
1
by: jmarr02s | last post by:
I am trying to enable the Person Name Smart Tag, but after I open up my table in Design view and select the field (in this case CustomerName field), click in the Smart Tag text box, click the Build...
0
by: cruster | last post by:
Hey folks. I'm developing an ASP.NET custom control and have assciated a custom ControlDesigner with it. I'm using smart tags in design time like this: public override...
0
by: Joh Smith | last post by:
Hi, I have been using Smart tags Visual Studio 2005 feature in C#, but it seems that this feature is not available in VB 2005? Is this true? If this feature is available, how do I activate it?...
0
by: phill86 | last post by:
Hi, I have a shared contacts folder on a outlook exchange server i need to access the contacts in that folder using smart tags. is there any way to point the open/add contacts to the folder on the...
1
by: phill86 | last post by:
Hi, I have a shared contacts folder on a outlook exchange server i need to access the contacts in that folder using smart tags. is there any way to point the open/add contacts to the folder on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.