473,396 Members | 2,030 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,396 software developers and data experts.

Dynamic hyperlink in form

mnemosyne
hi i'm trying to figure out how to have a hypertext link in a form use the information entered from a separate field in order to link to a word document

EXAMPLE
Link to Report is a hyperlink that gets the Medical Record # from another field and uses that to link to "[Medical Record #].doc" so that when a patient's Medical Record # is entered as 0001, the hyperlink will open "0001.doc" and so forth

will i have to use code builder to DoCmd a copy object?
or can i use some sort of simplified language in the Hyperlink Address properties (ie: [Medical Record #].doc)?

your help is greatly valued and appreciated!
cheers
richard
Oct 10 '06 #1
3 15115
ok i'll answer my own post for s&gigs
in case some googlers come round asking the same question...

I right clicked the text i wanted to use as a hyperlink, clicked Build Event... then Code Builder
then i entered this VBA code:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Link_Label_Click()
  2. Dim strfile As String
  3. strfile = Me.controlname + ".doc"
  4. Application.FollowHyperlink strfile
  5. End Sub
good luck to all
Oct 11 '06 #2
i just found this 9 years later after trying to remember how i did this 9 years ago...

@mnemosyne
Nov 12 '15 #3
zmbd
5,501 Expert Mod 4TB
Nice to have that information available.
In fact, I just did the same thing here, I posted an answer a while back (has it been that long - yikes!) and ran into a similar issue and couldn't remember how I had solved it, nor find my notes... but I did remember I had posted here... and there it was! Bytes has been a real time saver and education!
Nov 12 '15 #4

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

Similar topics

2
by: Rob Rogers | last post by:
I am old programmer, but this asp.net stuff throws me for a loop. I have an asp.net page that I need to create a dynamic hyperlink from based on the user selection from the drop down list and...
0
by: Jeffrey James | last post by:
I have a form field that dispays a dynamic hyperlink that changes for each record dispayed. I need help setting up the form to execute the hyperlink on click or double click. Any assistance is...
1
by: Mundungus Fletcher | last post by:
Greetings, I apologize if this has been asked and answered a lot. Googling showed me a few people asking, but I didn't find any clear-cut answers. I have a vendor db, and I need to create a...
1
by: brian | last post by:
This is the first time I have tried to create dynamic controls. I am trying to create a hyperlink control. The control will display properly but the event isn't triggered. I read a lot of...
2
by: Dave Williamson | last post by:
When a ASPX page is created with dynamic controls based on what the user is doing the programmer must recreate the dynamic controls again on PostBack in the Page_Load so that it's events are wired...
1
by: Gerald Baeck | last post by:
I want to realize a dynamic hyperlink, which changes onclick it's text and it's navigateurl. Unfortunately there is no event for a hyperlink like onclick for buttons. Is there another way to...
4
by: EvelynAnd Ethan | last post by:
Hi, ItemCommand event not firing from a dynamic user control ,WHERE A DATAGRID HAS BUTTON,when i click on the linkbutton first time the itemcommand event doesnt fire,second time event fires up ...
3
by: sloesch | last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net, and ASP.net, and I would like to know how you can create a dynamic hyperlink on the fly to a document stored in a SQL database?...
1
by: sweetpotatop | last post by:
Hello, I would like to create dynamic hyperlinks in a web page when it is first loaded by using ASP.NET. Basically there will be a list of documents in a folder and I will list them all as a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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,...

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.