473,889 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email Item as Link from Access

TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
Assumptions:
I know how to create email from within Access, using outlook automation.
User has the access frontend installed
Office 2003

Is it possible to create a hyperlink in a email that will accomplish the following, when receiver clicks it:?

Open the access front-end on the users PC.
Open relevant form
Goto relevant Item


If its not possible in the way I have described it, I have several modifications that could be acceptable, for example, it would be ok to require that the user has the frontend open when clicking the link. It would also be ok if I had to install a add-on to the users outlook.
Jan 19 '12
54 14429
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
@Mariostg: I allready have a installer (basicly another mdb file) that users open to install the main application. This also creates a shortcut on their desktop. (Thats the link part). The application allready has a form called "My Reviews", which shows the reviews assigned to each user, sorted by review status, with buttons to open each review (open form and goto specific item part).
Your suggestion (While appreciated, don't misunderstand me!) adds nothing new really. In short you could say the functionality missing is 1 Email=1 itemLink.

The hyperlink in the email is really just a nice to have feature.

@Adezii1) No not directly. By that I mean that I cannot sit from my own PC and remotely interact with theirs. I can go shove them off their chair and do work at their workstation. I am not IT savvy, my main expertise lies in Access and Railway Safety (odd combo).
That said, each user has their own frontend which gets updated automatically when the user starts an "old" frontend. So if I can add the code to the frontend, You might say that through MSAccess I get access to their PC, and If I can code it in access it can run on their PC with "their" rights.

2)Same as 1)
Jan 26 '12 #51
NeoPa
32,584 Recognized Expert Moderator MVP
Smiley:
I just want to tack this onto the thread before I forget it. You can get the MSAccess.exe path from the excel file if you have set a reference to the Access object model, and then use:
Expand|Select|Wrap|Line Numbers
  1. SysCmd(acSysCmdAccessDir)
Excellent. I didn't know about this and I've done various projects (and other questions on here) where this would have proven very useful. I was assuming for a while (before my brain kicked in) that this would be handled by the code at Smiley's end that prepared the command line itself (in cell A1), but then I realised that Smiley's setup may be different from any of his users so it would, indeed, need to be incorporated into the Excel code after all. It's a very worthwhile piece of code though and I was happy to add it to the workbook already provided :-)

NB. In the code below a deliberate choice was made to use late-binding (IE. No Library Reference was made to any version of Access). This is to reduce any likelihood of problems handling potentially various versions on the target PC. It explains the need for the definition of conAccessPath, which is a duplication of acSysCmdAccessD ir which would otherwise have been available.
Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2.  
  3. Private Const conAccessPath As Long = 9
  4.  
  5. Private Sub Workbook_Open()
  6.     Dim strMsg As String, strCmd As String, strAccessPath As String
  7.  
  8.     With CreateObject(Class:="Access.Application")
  9.         strAccessPath = .SysCmd(conAccessPath)
  10.         Call .Quit
  11.     End With
  12.     strCmd = Range("A1")
  13.     strCmd = Replace(strCmd, "%AccessPath%", strAccessPath)
  14.     strCmd = Replace(strCmd, "%ProgramFiles%", Environ("ProgramFiles"))
  15.     strMsg = "You are about to run the command :%L%L%C"
  16.     strMsg = Replace(strMsg, "%L", vbNewLine)
  17.     strMsg = Replace(strMsg, "%C", strCmd)
  18.     If MsgBox(Prompt:=strMsg, _
  19.               Buttons:=vbOKCancel Or vbQuestion, _
  20.               Title:="RunCommand") = vbOK Then _
  21.         Call Shell(PathName:=strCmd, WindowStyle:=vbMaximizedFocus)
  22.     If Application.Workbooks.Count > 1 Then
  23.         Call Me.Close
  24.     Else
  25.         Call Application.Quit
  26.     End If
  27. End Sub
Smiley:
Users must also allow macros, in order for the excel code to run. I think a potential problem with the Excel solution is that we will soon be upgrading to Office 2010, and I fear that I will have to look into a lot of macro security issues at that time.
Indeed. You will find this precondition referred to in post #44.

My own preferred solution to users running my code, without compromising their macro security generally, is to sign all my projects. Information on how this may be done for free can be found at Code Signing.
Attached Files
File Type: zip RunCmd.Zip (19.7 KB, 100 views)
Jan 26 '12 #52
Mariostg
332 Contributor
@TheSmileyCoder
Expand|Select|Wrap|Line Numbers
  1. Your suggestion (While appreciated, don't misunderstand me!) adds nothing new really
Don't worry. I did not loose any sleep on this. You are spoiling your users. I hope they see and recognize the efforts you are investing :).
Jan 30 '12 #53
NeoPa
32,584 Recognized Expert Moderator MVP
Lol Mario :-D

It never hurts to let the users think it's for their benefit, but we all understand it's mainly to stop all the calls back to you when they manage to muck (was that an 'm'?) up even the simplest procedures and break even the most robust systems. The less scope they have for damage the better I sleep :-D

PS. I see one of the big benefits of contributing to a forum site such as this is that we can all pick up from, and use for ourselves, some of the ideas and procedures that get developed to handle questions such as these. I certainly intend to add this one to my arsenal, and I'd never considered this type of problem before.
Jan 30 '12 #54
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I finally figured this out, many years later, and blogged about. You can find the blog post here:
http://thesmileycoder.com/access-ema...ink-to-record/
Jan 30 '17 #55

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

Similar topics

2
3362
by: James Fraley | last post by:
I've created a MS Access form and get the exact same results as below? Now, I believe it has something to do with storing EMails, not OLE. I will appreciate any help! --------------------------------------------------------------- I've created a form with an OLE obect linked to a MS Access OLE Object. I need to store an email from Outlook in the field. Everything works fine if I drop the email on my desktop and then pick
5
5414
by: Alan | last post by:
Hello, I trying to export my email to an access database. Outlook already this function, but not all the fields are available once the export is complet. The time & date stamps are not available. Also, the attachment file names field is not present. Are there other means of obtaining these information? Regards,
0
1391
by: gj | last post by:
If anyone has worked with this I would be interested to find out. I have successfully put send/receive emails into an application using SMTP/POP server but would like to do something more professional with IMAP. I basically want a full email client in Access that can connect to an IMAP server. I have played with a few ActiveX controls but would like others experiences. TIA
7
5421
by: Daven Thrice | last post by:
I know how to send email out of Access, and that's no problem. What I need to figure out is how to receive email into access. Say that I give access an email address, such as access@daven.com. I want all email that comes to that address to be received directly by the database so that I can parse out the files. I'm thinking that, worst case, I can write my own email client using the winsock control. But is that my only alternative?
8
9640
by: tymperance | last post by:
I have a report that I currently email directly from Access as an attachment using a macro. I need to make it be the body of the email instead. Can that be accomplished without extensive VBA programming? Thanks!
2
9002
by: diwadube2003 | last post by:
I get a Warning message while automatically sending email through MS Access, using Outlook. Can anybody help me out with this.
6
6927
by: ttamilvanan81 | last post by:
Hai. I needto Receive Email using Ms-Access and Outlook. On the receiving end, the user receives the email at the Outlook. When they opens the Email, the message box should have a button called “Save to Access”. When this button is pressed, a dialog box should pop up where the user can choose a contact name and a job name and click on SAVE Here contact name and job name are in the access table fields. We go to select any one contact...
2
1809
by: PPPPPPPPP | last post by:
I Am Not Able To Link Access Database In Visual Basic .please Help Me To Do So . Thanking You In Anticipation.
0
2071
by: wassimdaccache | last post by:
Hello Experts; I have a wireless router TP-link I made security phrase for it. What i am trying to do is to configure a d-link access point as a repeater for the TP-link and always not working :(!!! while i am scanning in my access point (d-link) I see the tp-link and I am able to connect but when I scan using my wifi on my laptop I'm not seeing the D-link . Why ?
4
1921
by: davekearley | last post by:
Hi all, first post, looks like a great site. I have a small problem with Access. I need to link to an ODBC table (SQL7) but when i go to the link dialogue, the ODBC entry is missing. I have other linked tables in this DB and they all re-link ok so the system DSN is working fine. Any ideas? I have not linked a table for some time and cant remember how to get the ODBC option back.
0
9810
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11203
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10794
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10896
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9612
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7999
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4650
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3257
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.