Hi
The following code executes quite fine with a DSN connection, but when I migrate it to a DSNless connection it falls over!
I have NO idea why it is doing this, can ANYONE HELP?
Any help would be appreciated!!
The following code executes quite fine with a DSN connection, but when I migrate it to a DSNless connection it falls over!
I have NO idea why it is doing this, can ANYONE HELP?
Code:
Dim Conn, dbPath, DB_USERNAME, DB_PASSWORD
dbPath = "C:\Inetpub\[URL unfurl="true"]wwwroot\website\Supplier_catalogue\data\db1.mdb"[/URL]
Session("Connection") = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & dbPath
DB_USERNAME = "Admin"
DB_PASSWORD = ""
set RSRadiant = Server.CreateObject("ADODB.Recordset")
RSRadiant.ActiveConnection = Session("Connection")
RSRadiant.Source = "SELECT * FROM tblCountry WHERE Country like '" + Replace(RSRadiant__varCust, "'", "''") + "%' ORDER BY ID ASC"
RSRadiant.CursorType = 0
RSRadiant.CursorLocation = 2
RSRadiant.LockType = 3
RSRadiant.Open
RSRadiant_numRows = 0
%>
<% If RSRadiant.EOF AND RSRadiant.BOF Then %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFCC00">
<td>
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">NO
RESULTS FOUND. PLEASE SEARCH AGAIN</font></div>
</td>
</tr>
</table>
<% End If ' end RSRadiant.EOF And RSRadiant %>
Any help would be appreciated!!