473,769 Members | 3,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic hyperlink in form

mnemosyne
3 New Member
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 15138
mnemosyne
3 New Member
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
mnemosyne
3 New Member
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 Recognized Expert Moderator Expert
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
10726
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 whatever they enter in the textbox. I have hardcoded ?St=Ok?City=Tyler but I need the info to come from the drop down list and textbox. Here is my code.. <%@Page Explicit="True" Language="VB" Debug="True" %>
0
1431
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 greatly appreciated. Jeff
1
3811
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 hyperlink using values from a table, e.g.: http://myserver.com/form.jsp?name=&addr1= and so on...
1
2283
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 stuff pertaining to this topic but have not been able to figure out my problem. TEST() is processed when I click a command button which creates the dynamci link buttons. The dynamic link buttons display fine but have no event when clicked.
2
2560
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 and are called like a static control. Here is the problem that I need to solve. The processing overhead that occurs to determine what dynamic controls need to be added involves business logic and a query or queries of data in a sql server...
1
2286
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 realize this task? thx, Gerald.
4
4162
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 any answers?? Regards,
3
12364
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? I would like to create a VB.net function that would do this, and I found this class *System.Web.UI.WebControls.HyperLink*, but I can not find any examples on generate a dynamic hyperlink. Basically, I want my function to generate an embedded...
1
2627
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 hyperlink for user access. I wonder how I can go through the folder and create the dynamic hyperlink on the fly in ASP.NET.
0
10206
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...
1
9984
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
8863
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
7403
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...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
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
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
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.