473,554 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open pdf file with Access!!

3 New Member
hi
Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
Some one could help me with this pls! even to open the folder is ok with me
Aug 27 '07 #1
4 13387
dima69
181 Recognized Expert New Member
hi
Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
Some one could help me with this pls! even to open the folder is ok with me
You can use ShellExecute API function. For more details about the function usage look HERE
Aug 27 '07 #2
yang
3 New Member
hi iam not the programmer with SQL, so could you help me ti deal with this thing... Thax for ur help!!
Aug 27 '07 #3
JConsulting
603 Recognized Expert Contributor
hi
Basicly i have i PDF file which is in special folder. Thus i want to create a button in access so when ever i click on, it will open my file.
Some one could help me with this pls! even to open the folder is ok with me

Create a button. Go to it's "On Click" event and put this

Expand|Select|Wrap|Line Numbers
  1. FollowHyperlink "C:\TestFolder\YourFile.pdf"
  2.  
The Followhyperlink will open the file as long as it's a filetype that your computer is set up to open with Acrobat viewer.
J
Aug 27 '07 #4
yang
3 New Member
Create a button. Go to it's "On Click" event and put this

Expand|Select|Wrap|Line Numbers
  1. FollowHyperlink "C:\TestFolder\YourFile.pdf"
  2.  
The Followhyperlink will open the file as long as it's a filetype that your computer is set up to open with Acrobat viewer.
J
IT is does work :|, i already put it in "click on" Function but when i clicked it, it didn't appeared anything..
Aug 28 '07 #5

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

Similar topics

6
2052
by: Jakob Bieling | last post by:
Hi, I was wondering why there are file access modes, which you have to specify when opening the file. I am specifically talking about the 'read', 'read-write' and 'write' distinction. As far as I can tell, it only makes sure, you (the programmer) do not accidently write to it when you opened it for reading. To me, this seems like another...
1
2331
by: elitecodex | last post by:
Hello everyone. I want to know the best way to accomplish this particular situation. I have a C++ application that has a file open for write access constantly and it is always updating the information in the file ( maybe once a second or so ). That isnt the problem :) I want to have a second seperate application (written in PHP or...
1
4496
by: N. Graves | last post by:
Help me please? I'm have users import tables from other Access Database in one of the process needed to use my ADB. To do this the user opens a form with a field for the file directory and another field for the Access database name. I would like to replace this with a Open file Dialog box. Could you please share with me the best way or...
2
2084
by: Vinayak Raghuvamshi | last post by:
I have a file that has been created using shared read/write access. But C# code never is able to open this file for read and keeps throwing "...cannot open file as it is being used by another process...". I verified that the file is indeed available for shared reading. here is my code snippet. is there a bug in C# that i dont know, or is...
4
2099
by: Jason Hurder | last post by:
Hello folks, I am experiencing a rather strange problem. I have written a service that attempts to open a file on a network share via a FileStream object. When I try to open the file from my service, I get the "Access is denied" error. However, if I try to open the file from a GUI application, I can open the file without problem. I've tried...
10
2120
by: vvenk | last post by:
Hello: When I tried to use an Access database, I get the following exception: Server Error in '/WebGrid' Application. -------------------------------------------------------------------------------- The Microsoft Jet database engine cannot open the file 'D:\Program Files\Infragistics\NetAdvantage 2005 Volume...
1
19870
by: ABCL | last post by:
Hi All, I am working on the situation where 2 different Process/Application(.net) tries to open file at the same time....Or one process is updating the file and another process tries to access it, it throws an exception. How to solave this problem? So second process can wait until first process completes its processing on the file. ...
5
11185
by: Ryan Liu | last post by:
Hi, Both way works, I'd just ask some experts which way is better? My application creates a log file daily. Now each time when I write a log, I will open the file and append to the end. Ocz, if the file is not exist(e.g. another day), it will creates the file first.
9
42181
by: Matt | last post by:
How would I do this ... I want to set the Windows Scheduler to run the ..bat file which will open an access database at like 2 in the AM. What code do I need in the .bat file.
4
7871
by: Wayne | last post by:
How do I get rid of the generic Windows "Open File - Security Warning" that appears when I try to open a database that resides on another PC on my home network? This is not the annoying macro security warning - I have my macro security set to low. The warning I am describing only appears when a database on another machine is opened.
0
7775
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. ...
0
8008
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...
0
6113
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...
1
5411
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...
0
5133
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...
0
3537
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...
0
3525
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1107
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
808
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...

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.