Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error ASP, sql and crystal reprots

Status
Not open for further replies.

JKingdom

Programmer
May 9, 2004
141
AE
am using asp, sql server and crystal reports .. but am getting this error ..

Error Occurred Reading Records: The table '' could not be found.
 
it works with acces database(directly or dsn) boths working fine .. .. but not working with sql server ..
 
may be the table doesnt exist on sql server...recreate the table and try again...

-DNG
 
its working fine when i use access database but not with sql .. although the report is working fine when i open it directly not through sql !!


session("oRpt").RecordSelectionFormula = CStr("{dept.dept_Id} =21")


On Error Resume Next

session("oRpt").ReadRecords

If Err.Number <> 0 Then
Response.Write "Error Occurred Reading Records: " & Err.Description
Set Session("oRpt") = nothing
Set Session("oApp") = nothing
Session.Abandon
Response.End
Else
If IsObject(session("oPageEngine")) Then
set session("oPageEngine") = nothing
End If
set session("oPageEngine") = session("oRpt").PageEngine
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top