I am coming accross an error while trying to select a location from a DBF table based on the user id of the logged in user.
Here is the error I'm getting:
[tt]
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC dBase Driver] Index not found.
[/tt]
It will pull all locations from the table successfully if i just do [tt]SELECT * FROM clinics[/tt], but I get the error when I try to refine my search:
I am using a system DSN pointing to the folder containing the DBF files. I'm just not sure why this won't work.
Thanks in advance.
Here is the error I'm getting:
[tt]
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC dBase Driver] Index not found.
[/tt]
It will pull all locations from the table successfully if i just do [tt]SELECT * FROM clinics[/tt], but I get the error when I try to refine my search:
Code:
dim objConnGs, rsFinance, strSQL, sbtNumber, clinicName
call openDbGs()
set rsFinance = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM clinics WHERE areamgr= '" & strUser & "' ORDER BY clinics.""Desc"""
rsFinance.Open strSQL, objConnGs
do while not rsFinance.Eof
sbtNumber = rsFinance("SBT_Number")
clinicName = rsFinance("Desc")
Response.Write("<option value=""S:\Financial Reports\" & sbtNumber & "\" & Year(reportDate) & "\" & MonthName(Month(reportDate)) & "\SIS_" & sbtNumber & ".pdf"">" & clinicName & "</option>")
rsFinance.MoveNext
loop
I am using a system DSN pointing to the folder containing the DBF files. I'm just not sure why this won't work.
Thanks in advance.