473,804 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open an external file from a combo box witha command button

2 New Member
Hi all.

I stuck here and need some help. I have created a combo box which contains a list of links to external PDF files. I also created a OPEN command button next to the combo box. I want to be able to select a file from the list and use the command button to open this external PDF file.

I already know how to use just a command button to open an external file. However, it is very time consuming to use command buttons when you have alot of external file to open.

Does anyone know what I need to do to get this done?

Thanks in advance.
Jan 11 '08 #1
2 4430
Dököll
2,364 Recognized Expert Top Contributor
Hi all.

I stuck here and need some help. I have created a combo box which contains a list of links to external PDF files. I also created a OPEN command button next to the combo box. I want to be able to select a file from the list and use the command button to open this external PDF file.

I already know how to use just a command button to open an external file. However, it is very time consuming to use command buttons when you have alot of external file to open.

Does anyone know what I need to do to get this done?

Thanks in advance.
Hey there, iamdennis!

I wonder if the VBA code written by Access to grab word docs can help you load PDF docs.

Add a command button to a form, with your wizard turned on and find the Open word, or something of that nature, anything that'll load word docs... See if you can load a PDF using that code.

To tell you the truth I have no idea of the outcome, I just don't see why not.

Make a copy of the PDF:-)

Also, let us know how it turns out...

Dököll
Jan 11 '08 #2
iamdennis
2 New Member
Hey there, iamdennis!

I wonder if the VBA code written by Access to grab word docs can help you load PDF docs.

Add a command button to a form, with your wizard turned on and find the Open word, or something of that nature, anything that'll load word docs... See if you can load a PDF using that code.

To tell you the truth I have no idea of the outcome, I just don't see why not.

Make a copy of the PDF:-)

Also, let us know how it turns out...

Dököll
Hey, I tried that but still no success!
Jan 19 '08 #3

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

Similar topics

3
10393
by: Kathy Benson | last post by:
Hi, I need to open an external file, such as *.htm from a Java program. I need to open this file by the default program that handles this extension on the machine. So *.htm should always be opened by Netscape if that is the default browser on the machine. I figured out how to do this on NT but could not find an equivalent command on Linux. Here is what I did on NT.
4
7196
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2) how to use the selection "All" as criteria for a field in a query, which is used to generate data for a report.
2
2205
by: Matt | last post by:
I have a requirement where a user upload a CSV file to the server through an ASP.NET page. After the file is uploaded the ASP.NET page then has to upload the contents of this file into an Oracle table. After the upload is complete the ASP.NET page has to call an Oracle stored procedure to process the data. All this has to be done in one go. Here is a what I did. 1. Created a simple ASP.NET page which provides the user with a file upload...
1
3247
by: NV | last post by:
With the help and hints from this group I've collected a code that allows me to print a file (pdf/doc/xls ...) nby clicking a button in a form. This works fine if I introduce the file name in the procedure, but what I need is that the file name dependes on the choice of a combo box, in the same form. That combo box is called ArticleCode. Does anyone has any suggestion ?
4
4734
by: fat | last post by:
I have a drop down combo box that displays a list of customers , and the list is growing.. I would like to click the dropdown arrow and have a List box in a new form open, then i can choose a customer and pass it back to the combo box. can anyone help me thanks in advance d
28
3280
by: jverri01 | last post by:
First, I am relatively new to working with variables. Most of my experience has been with interface design. i am using ACCESS ver. 2003, running in Windows XP. Second, I spent an hour searching through articles and posts to make sure the information I am seeking is not already posted on the site. I am beating my head against the wall trying to figure out something that seems like it should be very simple. The trouble is I do not fully...
1
2057
by: mattc66 via AccessMonster.com | last post by:
Hi All, I am going to use easy help to create my hlp files. I want to just have a button on my form that says HELP. I would like to then set it up so that I open the .hlp file. What would my Shell command read? -- Matt Campbell mattc (at) saunatec com
3
2617
by: Mack guy | last post by:
I'm working on an Access database and have a form with a combo box (a list of assembly plant locations), and I want a command button that will open the layout file for that plant. I've got Application.FollowHyperlink "<file location>" which works, but I'm looking for a way to control what file is opened based on the selection in the combobox. I tried If (="<plant name1> Then Else If (="<plant name1> Then
3
5523
by: WiscCard | last post by:
This seems simple enough, but I am having problems. I have a table of customer information. I have a form with various combo boxes displaying unique customer information (in this case, zone and broker, but I'll add others before it is done. I want each user to choose what they want out of the combo boxes, then hit the command button, which will display the results on a customized form. If they choose both combo boxes, it works gerat. The...
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10346
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...
0
9173
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
7635
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
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
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
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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
3001
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.