I have an Access 97 database that records details of electical distribution boards and their associated circuits. There are about 700 Distribution Boards.
An Access report formats the details of a selected Distribution Board. I want to create hyperlinks from other applications to this report for a particular Distribution Board. EG via a hotspot on an electrical drawing. The other applications only support hyperlinks to files (not
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
PDF files from Access 97
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » PDF files from Access 97
- This topic has 7 replies, 5 voices, and was last updated 22 years, 5 months ago.
AuthorTopicWSgandalf
AskWoody LoungerMay 23, 2001 at 5:28 am #356326Viewing 0 reply threadsAuthorReplies-
WSThomasW
AskWoody LoungerMay 23, 2001 at 3:48 pm #527221Actually I just finished doing this. I do not know that this is the most elegant method, but it works. I use VB to Rename the report using the statement:
Name OldName as NewName
OldName is the (full path)name the report was given and NewName is a (full path)name that I build in VB, before this statement, which makes sense to the users.
This may be all you need, but if you would like me to post more complete code, let me know.
-
WSchico
AskWoody Lounger -
WSHansV
AskWoody LoungerDecember 27, 2002 at 4:10 pm #640938Thomas’ reply is from more than a year and a half old; he hasn’t been active in the Lounge recently.
You have to find out what the “default” name Access gives to the PDF file exported from the report, as well as the location (drive/folder).
You have to decide on the name (and possibly location) you want the PDF file to have.
Say the exported PDF file is C:MyDatabasesrptTest.pdf and you want to name it QuarterlyReport.pdf in the same folder. Then you would use
Name “C:MyDatabasesrptTest.pdf” As “QuarterlyReport.pdf”
If you want to name it QuarterlyReport.pdf and store it in C:ManagementReports2002, you would use:
Name “C:MyDatabasesrptTest.pdf” As “C:ManagementReports2002QuarterlyReport.pdf”
Note: you can’t use the Name instruction to move a file to another drive: if you want to do that, use FileCopy to copy the file to a folder on another drive, then Kill to delete the source file.
If you need more instructions, please provide enough details for others to understand what you want to accomplish.
-
WSchico
AskWoody LoungerDecember 27, 2002 at 4:26 pm #640943Hans,
Thanks for the reply. I saw the date of Thomas’s post after I’d already sent mine, but figured it was worth a shot. Your post cleared it up somewhat, but I’m still a little confused. Here’s my situation.I have several reports in my db that need to go to corporate each month. Currently, the user just prints them from Access (97 SR2) and faxes them, but it’s getting to be too much paper. I tried exporting to snapshot and sending via e-mail, but these reports have graphs in them and snapshot doesn’t like them. So I downloaded a program called PDF2Mail which uses GhostScript and RedMon to generate a PDF file. I don’t know how to change the name of the pdf file created so that the user doesn’t have to go through the process of renaming each file (there are about 6). I’d like to be able to generate the pdf file name based on parameters that are entered to generate the report.
-
WSHansV
AskWoody LoungerDecember 27, 2002 at 4:37 pm #640948As Thomas noted, the name of the PDF file is generated automatically, based on the caption of the report. If the Caption property is empty, you’ll get a default name; otherwise, the Caption will be used in the file name. It’s no use to set the Caption property in code, so the best you can do is generate the PDF file and then rename it using Name … As …. like Thomas suggested – my previous reply gives two examples of doing that with fixed new names, but you can construct the new names in code. If you let the user enter or select the parameters on a form, it’s easy to use them in constructing the new file name. Something like
Dim strName As String
strName = “Report for Division ” & Forms!frmParameterForm!txtDivision & “.pdf”
Name “C:MyDatabasesrptTest.pdf” As strName -
WSpatt
AskWoody LoungerDecember 27, 2002 at 7:57 pm #640989You said:
<>
I have used this technique before to send reports via email.
What I have done is to open a report in PREVIEW mode and in the OnOpen event of the report I setup the Caption of the report. After the DoCmd.OpenReport command I issued the SendObject of the report to send the email. Granted this was sent in RTF format but it did send the report as the name that was setup by the caption.
Pat -
WSHansV
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Login screen icon
by
CWBillow
2 hours, 33 minutes ago -
AI coming to everything
by
Susan Bradley
4 hours, 10 minutes ago -
Mozilla : Pocket shuts down July 8, 2025, Fakespot shuts down on July 1, 2025
by
Alex5723
6 hours, 20 minutes ago -
No Screen TurnOff???
by
CWBillow
6 hours, 42 minutes ago -
Identify a dynamic range to then be used in another formula
by
BigDaddy07
7 hours, 15 minutes ago -
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
18 hours, 52 minutes ago -
How well does your browser block trackers?
by
n0ads
5 hours, 9 minutes ago -
You can’t handle me
by
Susan Bradley
9 hours, 34 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
4 hours, 38 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
1 day, 6 hours ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
9 hours, 44 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
1 day, 6 hours ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
1 day, 6 hours ago -
Lumma malware takedown
by
EyesOnWindows
18 hours, 59 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day, 15 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day, 15 hours ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 19 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 19 hours ago -
Trump signs Take It Down Act
by
Alex5723
2 days, 3 hours ago -
Do you have a maintenance window?
by
Susan Bradley
8 hours, 18 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Cox Communications and Charter Communications to merge
by
not so anon
2 days, 6 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
15 hours, 19 minutes ago -
hibernate activation
by
e_belmont
2 days, 15 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 22 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 18 hours ago -
Out of band for Windows 10
by
Susan Bradley
3 days, 3 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
3 days, 10 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.