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

.hyperlink information from within a subform

Hi Everyone,

I have just created a hyperlink from within a simple form that I have to pull and open a PDF file that matches with a customers order.

My code is below:

FollowHyperlink "\\Frontdesk\FrontDesk\PDFOrders\" & Order & ".pdf"

That works great - now I have a challenge, and I dont think it will work, but I am not the greatest with the programming end of things, so I wanted to ask.

I have a form that shows each customer, then a subform that only shows orders from that customer. As you can imagine customers may have 1 order or 5...

Can I use the same idea for hyperlink as above on the form and still get Access to open the orders for a customer from within the subform?

I simply tried putting the same code on the main area of the form, but as I expected it doesnt look in the subform. Even if I could get it to look in the subform, what happens when it sees 2 or more numbers in the "order" column?

I have added a picture incase that helps.

Any help is appreciated!

Chad
Attached Images
File Type: jpg Sample.jpg (27.0 KB, 555 views)
Apr 13 '10 #1
6 2587
NeoPa
32,556 Expert Mod 16PB
Check out How to Programmatically Create a Hyperlink on a Form. It could be easier than you think.
Apr 13 '10 #2
Thanks Neo, I will take a look.
Does that mean you know/think what I want to do is possible?

*UPDATE* - Ok, so I took a look at that thread you referenced... I dont have any programming background so I am seriously struggling with understanding what each of those lines will do. Classically I have copied programming that I have found somewhere and manipulated it slightly to accomplish what I need (Like the hyperlink example above) but my instincts are telling me that without some more background lessons, deciphering that code is a little above my pay grade. :)

Chad
Apr 14 '10 #3
NeoPa
32,556 Expert Mod 16PB
:D

To be honest, that wasn't the thread I thought I was linking you to. I need to dig up something I did a while back that made creating these links for a form perfectly possible just in the query itself. Generally speaking, no code required.
Apr 14 '10 #4
Oh, no problem - I appreciate the help.
I was having issues just getting the simple one working today over the network, but I resolved that. Now I just want to see if I can make it pul multiple orders.

Thanks for the help!
Chad
Apr 14 '10 #5
NeoPa
32,556 Expert Mod 16PB
What I thought I was posting was Error 7980: HyperlinkAddress or HyperlinkSubAddress read-only for Hyperlink.
Apr 15 '10 #6
Thanks Neo!
I will take a read over that and see if it is easier to understand.

Chad
Apr 15 '10 #7

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

Similar topics

2
by: deko | last post by:
I have a subform in my Access 2002 mdb that holds Hyperlinks to documents (.pdfs) that are associated with each record in the database. The datasheet subform is simply a list of Hyperlinks to...
2
by: deko | last post by:
Is there a special syntax for hyperlinks in queries? I have a table of hyperlinked documents displayed in a subform datasheet. Clicking the hyperlink opens the document from the hard drive. I...
3
by: hermawih | last post by:
Please help . I want to load the contents of another rtf document by double-clicking the words . Chapter1.rtf Chapter2.rtf Chapter3.rtf ....
1
by: jeguillo | last post by:
I am trying to retrieve the text within each cell in a datagrid in order to change the color of each cell, depending on the value within that cell. This works fine on the cells that are bound...
6
by: ryan | last post by:
I created in design view a subform within a subform. However the subform within the subform in only visible in design view. In form view the subform within the subform is not visible. I have...
1
by: chappy | last post by:
Greetings, I have a form where a user needs to select data from three different drop down menus. After those choices have been made, the result is displayed within a text box. The result...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
2
rsmccli
by: rsmccli | last post by:
Hello, Using Access 2002 I have a function that will accept a path to a document as a string, then open and print it. I have a table (tblScopeHyperlinks) that saves all hyperlinks inputted from...
0
by: vbrookie | last post by:
Hi. I am experiencing some bug/error trying to add/modify a hyperlink in a subform. The field is linked to a table that is designated as a hyperlink datatype. While accessing the form and...
5
by: Rachel Garrett | last post by:
If I created a Recordset in VBA, how do I make certain fields show up in a form?
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
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
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
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...
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.