473,386 Members | 1,738 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.

Automated Hyperlink using concatenation

I am trying to create an automated hyperlink in a form, based off of another field. Here is what I have so far in the after update event:

ParkerDrawingHyperlink = "#C:\Documents and Settings\shapeo\My Documents\CYLINDERS\Cylinder Drawings\#" & Me.ParkerDrawing & "#.pdf#"

This is working up to a point. It is opening the file folder on my hard drive where all the files are stored, but it is not opening the actual file.

When I look at the automated field, the following result is being populated:

C:\Documents and Settings\shapeo\My Documents\CYLINDERS\Cylinder Drawings\ - gc613058a0

The "gc613058a0" is the name of the file it should be opening. I don't understand why it is adding the extra spaces and hyphen before it though.

Any ideas?
Oct 25 '12 #1
5 5227
Ok, played around with it some more and finally figured it out. YEA!!!!

Here is how it should read:

ParkerDrawingHyperlink = "#C:\Documents and Settings\shapeo\My Documents\CYLINDERS\Cylinder Drawings\" & Me.ParkerDrawing & ".pdf#"
Oct 25 '12 #2
TheSmileyCoder
2,322 Expert Mod 2GB
I think you have some confusion about the use of #. They are normally used around DATES to indicate that they are dates and not merely a calculation. I suggest you take the time to look at these 2 articles to get a better understanding of the concept:
Literal Datetimes and their delimiter #
Quotes (') and Double-Quotes (") - Where and When to use them.
Oct 26 '12 #3
Hoopla3000
7 Nibble
@TheSmileyCoder
A hyperlink entry contains three parts separated by pound signs (#). The template is:
display text # file name # any reference within the file
The following link explains in more detail:
http://allenbrowne.com/casu-09.html

Hyperlink fields can be challenging to work with if you don't use them a lot. For storing paths where a clickable hyperlink is not needed, I have had less frustration by using ordinary text fields and using a button to launch the path.
Oct 26 '12 #4
TheSmileyCoder
2,322 Expert Mod 2GB
Thank you Hoopla3000, for that explanation. As you can probably guess I don't work with hyperlinks alot, I just use ordinary text fields, and a button to launch the links, which are usually files on our server.
Oct 26 '12 #5
NeoPa
32,556 Expert Mod 16PB
Good pickup Hoopla. I asked a question on this some time ago and the thread may prove helpful to those interested Error 7980: HyperlinkAddress or HyperlinkSubAddress read-only for Hyperlink. I believe I linked into Allen Browne then too as it happens.
Oct 27 '12 #6

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

Similar topics

0
by: Bill Thom | last post by:
I have a Microsoft Access 2000 (9.0.4402 SR-1) database that I am attempting to launch from a hyperlink using Internet Explorer (Version 6.0.2800.1106). If I attempt to launch the database from...
0
by: Tim | last post by:
Access 97: I have a table with a hyperlink field that I display on a form. I can click on the form field and the hyperlink activates correctly. However, if I try to activate the hyperlink using VB...
2
by: Big E | last post by:
I'm using ASP.Net and SQL Server. I have a table called states. I have 2 forms. On form 1 is the 50 states in textboxes created with a loop. I want to have those 50 or 45 or whatever amount of...
2
by: liquid | last post by:
If I do: a = , , ] a = 1 I get: a = ,, ] as expected
1
by: lipsa | last post by:
hi, I Hv a label and a corresponding hyperlink.i want 2 access the hyperlink using hot keys(alt+key)specified in the label....is it posible? label---firstlink hyperlink="http:/..." i want 2...
1
by: Mitwa | last post by:
can some body tell me how to make hyperlink using YUI or javascript i dont wana use any html code for that i need pure java script code for that pls somebody help me thanks Mitwa
1
by: Development | last post by:
using C# I have opened IE and one web based application in that IE i want to click on link preasent on that web application, how can i do it?
7
by: arull | last post by:
hi, how can i store the datas in hyperlink using jsp and servlet. For example,following are the hyperlinks. 1.java 2.vb 3.c i want to store the java related data in java hyperlink.like...
1
by: sneh4ever | last post by:
Hi, I am new at Visual Basic. I need to create an application which will open notepad file copy that data and paste in to msword and run macro to find and replace text. All I want to do using...
1
by: Tabinda | last post by:
how to run a C++ .exe file on server through a hyperlink using php? I want the c/c++ .exe files to run on the server through a hyperlink.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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.