473,387 Members | 1,812 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,387 software developers and data experts.

start a PDF - file from access (2000)

the following looks up for PDF files. but how to launch the file?

Function CustomFindFile(strFileSpec As String)
Dim strList As String
Set fsoFileSearch = Application.FileSearch
With fsoFileSearch
.NewSearch
.LookIn = "C:\PDF"
.FileName = strFileSpec
.SearchSubFolders = False
Me.Waarden_CBX.RowSource = ""
If .Execute() > 0 Then
For Each varFile In .FoundFiles
strFileList = strFileList & varFile & " ; "
Next varFile
End If
End With
MsgBox strFileList
Me.Waarden_CBX.RowSource = strFileList
Me.Waarden_CBX.SetFocus
Me.Waarden_CBX.Requery
Me.Waarden_CBX.Dropdown
End Function

Private Sub Knop0_Click()
CustomFindFile ("*.pdf")
End Sub

Private Sub Waarden_CBX_AfterUpdate()
Dim INFO As String
INFO = Me.Waarden_CBX.Value
ReturnValue = Shell(INFOHOS, 1)
End Sub

via shell is surely the wrong solution. What will do?

Thanks for advice

Marc Delatere, Knokke, Belgium.
Nov 13 '05 #1
1 1428
Marc,

I always use this shell command to view the file:

ShellExecute Me.hWnd, "open", strFullyQualifiedPathName, "", 0,
SW_SHOWNORMAL

If you leave your pdf viewer application open, it displays the
file much faster.

Use this one to print it:

shellexecute Me.hwnd, "print", strFullyQualifiedPathName, "", 0,
SW_SHOWNORMAL

Hank Reed
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Thomas | last post by:
I want to start this thread again - on my first attempt I was a little ambiguous and was not able to get the answer I need. I am trying to start Access 2000 on Windows NT 2000 Server by using the...
5
by: almagg | last post by:
Microsoft has the VBA help file for Excel 2000 which I was able to download. But I couldn't find one for Access. Any ideas? The original laptop owner did not install these files and I could sure...
8
by: Rick Brandt | last post by:
Just got a new PC at work (woo hoo) and I'm wondering if the way the various versions of Access were installed has left it in some kind of incorrect state. In an app I am working on I added a...
11
by: stu | last post by:
I have several databases that are opened using various versions of Access and VB. Up till recently everything worked fine, then I started getting a variety of lock file error messages, both on my...
7
by: Mark | last post by:
Hello, I have researched and tried every thing I have found on the web, in groups and MS KB articles. Here is what I have. I have a Windows 2000 Domain Controller all service packs and...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
2
by: leahf via AccessMonster.com | last post by:
I upgraded from Access97 to Access2002 last year. I just noticed that the default file format is Access 2000. Can that be the reason that I sometimes get "Microsoft Access has encountered..."...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
2
by: Samuel | last post by:
My A2003 makes an Access 2000 file format by default. When I go to make it a .mde I have to convert to A2003. That process looks to have been OK and then when I select 'Make mde' Access hangs...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.