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, 4 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
-
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
14 minutes ago -
Stay connected anywhere
by
Peter Deegan
6 hours, 33 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 20 minutes ago -
The Windows experience
by
Will Fastie
3 hours, 19 minutes ago -
A tale of two operating systems
by
Susan Bradley
5 hours, 18 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
8 hours, 39 minutes ago -
Where’s the cache today?
by
Up2you2
23 hours, 59 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
16 hours, 45 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
7 hours, 44 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 17 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 17 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 18 hours ago -
MS Passkey
by
pmruzicka
20 hours, 46 minutes ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 2 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 13 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 1 hour ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 21 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
AI slop
by
Susan Bradley
1 day ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 7 hours ago -
Two blank icons
by
CR2
15 hours, 34 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
17 hours, 32 minutes ago -
End of 10
by
Alex5723
3 days, 18 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 16 hours ago -
test post
by
gtd12345
4 days ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 15 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 17 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
4 days, 5 hours ago -
Upgrading from Win 10
by
WSjcgc50
2 days, 17 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.