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.
PaulViewing 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
-
Unable to eject external hard drives
by
Robertos42
15 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
17 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
10 minutes ago -
Synology limits hard drives
by
Susan Bradley
22 hours, 17 minutes ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
45 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 4 hours ago -
Upgrade Sequence
by
doneager
21 hours, 47 minutes ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
21 hours, 55 minutes ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
21 hours, 41 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 1 hour ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 3 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
22 hours, 23 minutes ago -
Shellbag Analyser & Cleaner Update
by
Microfix
12 hours, 7 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
2 days, 12 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
1 day, 16 hours ago -
Speeding up 11’s search
by
Susan Bradley
35 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
12 hours, 32 minutes ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 2 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
3 days, 9 hours ago -
24H2 fixed??
by
CWBillow
2 days, 2 hours ago -
Uninstalr Updates
by
jv16
3 days, 14 hours ago -
Apple zero days for April
by
Susan Bradley
2 days, 19 hours ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
2 days, 12 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
4 days, 13 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
3 days, 20 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 4 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
4 days, 22 hours ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
5 days, 1 hour ago -
0patch
by
WSjcgc50
1 day, 2 hours ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
4 days, 18 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.