I use the following line making an ODBC connection.
Set conPhyPlant = wrkODBC.OpenConnection(“Connection1”, , , “ODBC;DSN=”)
The question I have concerns the DSN. If I run the code as is I’m prompted to select a DSN from the list. If I do, everything runs smoothly. If I change that line to
“ODBC;DSN = MyDataSource”)
I get an error ODBC – Call Failed. I can’t quite figure out why I can’t enter my DSN directly into the code. Anyone have any thoughts.
Thanks
Paul
![]() |
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 |
-
ODBC (A2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ODBC (A2000)
- This topic has 4 replies, 2 voices, and was last updated 23 years, 1 month ago.
AuthorTopicWSpbricker
AskWoody LoungerMarch 26, 2002 at 2:37 pm #368753Viewing 1 reply threadAuthorReplies-
WScharlotte
AskWoody LoungerMarch 27, 2002 at 2:48 am #578743Does MyDataSource represent the name of a DSN or a database? I believe when you specify a DSN, you also have to specify the Database, i.e, “DSN=MyDataSource, DATABASE=MyDataSource”. I’m assuming the connection SQL Server or some such, since Access doesn’t like you to try and establish an ODBC link to Jet.
-
WSpbricker
AskWoody LoungerMarch 27, 2002 at 11:56 am #578791Using all the arugments in the Connect string was my next thought. This is a connection from an Access Db to another Access Db. Originally, what I was trying to find out was related to connecting an Access Db to a RAD interface on our FirstClass e-mail server. In the RAD application, I can see the Db, but I can’t see the Tables so I thought I would back up a few steps and start with an Access to Access connection to see what type of DSN connection worked. You can select a UserDSN, SystemDSN and FileDSN. I can’t find a lot of info related to which is the best. So far the FileDSN is the one I’ve used in my question. This is just for learning and not a permenant type of connection. Unfortunately, FirstClass has a lot of people happy to come do the work for you but not much information if you want to try doing it in house (budgets in schools these days are tight, but Administration still wants progress). Thanks for the pointers. I’ll see what happens and go from there.
Paul -
WScharlotte
AskWoody LoungerMarch 27, 2002 at 1:14 pm #578810You don’t normally try to make an ODBC connection to another Jet database. The connection string for a linked Jet table is different from the string for an ODBC connection, which may be why you’re having problems. With a Jet database, you set the connect property of the tabledef (assuming you’re using DAO) to “;Database=” & strPath & strDatabasename
-
-
-
WSpbricker
AskWoody LoungerMarch 27, 2002 at 2:14 pm #578829This works, selecting MyDataSource from the DSN dialog box:
Set conPubs = wrkODBC.OpenConnection(“Connection1”, , , “ODBC;DATABASE = SCHOOLHOUSEPhyPlantPhysical Plant 2000Physical Plant Work Order 2000.mdb;UID=;PWD=;DSN=”)
This doesn’t work,
Set conPubs = wrkODBC.OpenConnection(“Connection1”, , , “ODBC;DATABASE = SCHOOLHOUSEPhyPlantPhysical Plant 2000Physical Plant Work Order 2000.mdb;UID=;PWD=;DSN=MyDataSource”)
Now from what you say, part of the issue is probably Jet so if Jet doesn’t like this I won’t push it. As I say, this is just practice so if it doesn’t work completely, it’s no big loss. I’m just trying to familiarize myself with the process a little better before I get back to bigger issue.
Thanks a lot.
Paul
Viewing 1 reply thread -

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
-
0Patch, where to begin
by
cassel23
1 hour, 23 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
4 hours, 22 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
12 hours, 47 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
12 hours, 56 minutes ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
3 hours, 54 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
6 hours, 17 minutes ago -
Installer program can’t read my registry
by
Peobody
5 hours, 53 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
1 hour, 41 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
9 hours, 2 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 9 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 10 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
6 hours, 56 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 day, 13 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
14 hours, 54 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 19 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days ago -
Another big Microsoft layoff
by
Charlie
2 days ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
1 hour, 8 minutes ago -
May 2025 updates are out
by
Susan Bradley
55 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 6 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 6 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 6 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
2 hours, 21 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Apple releases 18.5
by
Susan Bradley
2 days, 7 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
2 days, 14 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 days, 15 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
23 hours, 46 minutes ago -
No HP software folders
by
fpefpe
2 days, 23 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.