A
ACase
Hello,
This question may not be particular to this site, but since this community
has been so helpful in the past, I thought I would give it a try.
I have an asp web app, that is connecting to an Access DB.
The connection is done through the following function. However I keep
receiving a 'Data source name not found and no default driver specified'
error message. So there is something wrong with my syntax.
Can anyone help with the proper connection settings. Thanks ahead of time.
Function GetConnection()
dim objCon
Set objCon = Server.CreateObject("ADODB.CONNECTION")
objCon.Mode = 3
objCon.Open
"DSN=Kiosk;DBQ=C:\Inetpub\wwwroot\bony\kiosk.mdb;DriverId=25;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;"
if objCon.State<>0 then
Set GetConnection = objCon
Else
Set GetConnection = nothing
end if
End function
This question may not be particular to this site, but since this community
has been so helpful in the past, I thought I would give it a try.
I have an asp web app, that is connecting to an Access DB.
The connection is done through the following function. However I keep
receiving a 'Data source name not found and no default driver specified'
error message. So there is something wrong with my syntax.
Can anyone help with the proper connection settings. Thanks ahead of time.
Function GetConnection()
dim objCon
Set objCon = Server.CreateObject("ADODB.CONNECTION")
objCon.Mode = 3
objCon.Open
"DSN=Kiosk;DBQ=C:\Inetpub\wwwroot\bony\kiosk.mdb;DriverId=25;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;"
if objCon.State<>0 then
Set GetConnection = objCon
Else
Set GetConnection = nothing
end if
End function