Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to use this scrip, but after login details it gives error as

Script error detected at line 39.
Source line: conn.Open Application("connString") 


Description: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified


What I have tried:

my database mdb file is in folder at location: <pre>E:\USERLOGINTOSITE


so I added this line
:
Application("connString") = "DRIVER={Microsoft Access Driver (*.mdb)}; E:\USERLOGINTOSITE\DBQ=test.mdb"


Pleaes guide
Posted
Updated 19-Apr-22 21:45pm

Your connection string is wrong.
See heer: Access connection strings - ConnectionStrings.com[^]
 
Share this answer
 
Comments
Member 15532479 20-Apr-22 2:08am    
Please provide the right string for me.
OriginalGriff 20-Apr-22 2:24am    
Certainly!
Just ship your computer and the network it is connected to so I can looks ate the files and work out what the connections string for your specific situation might be ...

Or ... and this is quicker given how long international shipping can take ... look at the file you want and at the example strings and try for yourself?
Member 15532479 20-Apr-22 2:51am    
Sorry for that..
I am using
Application("connString") ="Driver={Microsoft Access Driver (*.mdb)};Dbq=E:\USERLOGINTOSITE\test.mdb;"

Path to mdb is E:\USERLOGINTOSITE\test.mdb

I Have Access 2019.

Still getting error:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Really appreciate your help ans support please.
Your connection string is incorrect, look at the position of "DBQ=" in the string. See Microsoft Access ODBC Driver Connection Strings - ConnectionStrings.com[^].
 
Share this answer
 
Comments
Member 15532479 20-Apr-22 4:04am    
Thanks dear, I am getting error for connection:

I am using
Application("connString") ="Driver={Microsoft Access Driver (*.mdb)};Dbq=E:\USERLOGINTOSITE\test.mdb;"

Path to mdb is E:\USERLOGINTOSITE\test.mdb

I Have Access 2019.

Still getting error:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Really appreciate your help ans support please.
Richard MacCutchan 20-Apr-22 4:23am    
You have tagged your question "script", that is not a language that I know of.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900