-
WSKlaus
AskWoody LoungerFair enough, that’ll work. It’s just that this template will be shared with corporate users, that may have been (finally) trained to right-click and select “New”, or are selecting the template via Word’s File> New dialog, which includes the Workgroup Templates, where I store the template in question.
Thanks for your reply.
Klaus
-
WSKlaus
AskWoody LoungerCharlotte,
thanks for replying.For brevity, I didn’t include the mechanism for connecting to the SQL Server db in my post, but I use a global connection string, and a function, OpenConnection() As Boolean, that connects to the server when I open the adp as well as when I populate forms, combo boxes etc..
Before executing any command on the server, I make sure I have a connection:
fOK = OpenConnection()
If not fOK then
– reconnect
else
– here’s where I run the code you saw in my original postThis works well for any forms (single and continuous), or to run any stored procedure, it just doesn’t work with my reports. If you want to, I can post some code, but I’m not sure what to include: just the code I use to open the report, or the modules to set up the connection?
I also left a message on microsoft.public.access.adp.sqlserver, and Andy Baron replied that apparently you cannot use (unbound) reports in an unbound adp, or he wasn’t aware of a solution to my problem (“Access 2000 reports don’t have a recordset property the way forms do. In Access 2002, you can use a shaped recordset to create a report, but I haven’t tried it yet. In Access 2000, I think you’ll find that without connecting to SQL Server and setting a record source, you won’t get very far in building reports. You may want to look at 2002 if you need this, or use another tool for your reporting.”)
The reason I keep my adp unbound is, it’s easier to keep the users away from the server objects.
I was wondering, if there is a way to programmatically set up the connection to the server (i.e.,complete the steps in the File – Connection dialog using VBA which then should also display the server objects in the db window), run the report against a stored proc or view, then programmatically clear the connection dialog again. This way, I would have a bound adp just when opening the report, and an unbound adp using ADO for the remainder of the session.
Any thoughts?
![]() |
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 |

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
-
Can’t make Opera my default browser
by
bmeacham
1 hour, 41 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
1 hour, 48 minutes ago -
*Some settings are managed by your organization
by
rlowe44
11 hours, 47 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
14 hours, 1 minute ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
14 hours, 25 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
23 hours, 26 minutes ago -
AI slop
by
Susan Bradley
22 hours, 36 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day ago -
Two blank icons
by
CR2
10 hours, 16 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 9 hours ago -
End of 10
by
Alex5723
1 day, 12 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
10 hours, 11 minutes ago -
test post
by
gtd12345
1 day, 18 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 8 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 22 hours ago -
Upgrading from Win 10
by
WSjcgc50
10 hours, 21 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
13 hours, 55 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 14 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 2 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 16 hours ago -
Are manuals extinct?
by
Susan Bradley
1 hour, 53 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 1 hour ago -
Network Issue
by
Casey H
2 days, 12 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 13 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 13 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 15 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 17 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 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.