Click here to Skip to main content
15,917,702 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
Chris Meech21-Aug-07 8:00
Chris Meech21-Aug-07 8:00 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
DerekFL21-Aug-07 10:33
DerekFL21-Aug-07 10:33 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
Rocky#22-Aug-07 0:56
Rocky#22-Aug-07 0:56 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
DerekFL22-Aug-07 4:07
DerekFL22-Aug-07 4:07 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
Rocky#22-Aug-07 20:10
Rocky#22-Aug-07 20:10 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
DerekFL23-Aug-07 10:09
DerekFL23-Aug-07 10:09 
GeneralRe: Sort in an SQL Select - Non Typical I think... Pin
Rocky#23-Aug-07 19:09
Rocky#23-Aug-07 19:09 
Questionproblem opening an ado recordset against access 97 table... Pin
ricio200021-Aug-07 4:04
ricio200021-Aug-07 4:04 
I'm unable to open a recordset to an access 97 database. I can't even get an error to tell me why this is happening.

I have my connection object defined as follows

IMCDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\IMC\mdb\IMC.mdb;"
set session("IMCConn")=server.CreateObject("ADOdb.connection")
session("IMCConn").open IMCDSN

AnalysisDSN= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\IMC\mdb\Analysis.mdb;"
set session("AnalysisConn")=server.CreateObject("ADOdb.connection")
session("AnalysisConn").open AnalysisDSN

I then have some code that calls ClientAddEdit as follows:

sub ClientAddEdit()
'The first two lines creates the recordset and creates the beginning line
'of the SQL statement.

set rsClient = server.CreateObject ("adodb.recordset")
sqlClient = "Select * from [Client Table]"
sqlClient = sqlClient & " Where [ClientID] = " & varClientID

rsClient.open sqlClient, session("IMCConn"), adOpenDynamic, adLockPessimistic, adCmdText


'Modify the data in the database.
rsClient("ClientDescription") = request.form("txtClientDescription")
rsClient ("ClientContact") = request.form("txtClientContact")
rsClient ("ClientPhone") = request.form("txtPhone")
rsClient ("ClientComments") = request.form("txtClientComments")

rsClient.Update
rsClient.close
End sub

I tried putting error handlers but I cant even get the error to display. I tried "on error goto somelabel" as well as on error resume next and including logic as follows

if Err.number <> 0 then
msgbox Err.description
end if

immediately after the rsClient.open statement. I get nothing. I'm started to believe that I should upgrade the database to access 2000 for it work.

This code currently works in a windows nt box that i assume has access 97 installed. Could it be the version of access that may be possible causing the problem here?

Any experience anybody has had with this would be of great help.

D'Oh! | :doh:


Senior .Net Engineer @ Miami, FL

AnswerRe: problem opening an ado recordset against access 97 table... Pin
Mike Dimmick21-Aug-07 4:28
Mike Dimmick21-Aug-07 4:28 
GeneralRe: problem opening an ado recordset against access 97 table... Pin
ricio200021-Aug-07 10:15
ricio200021-Aug-07 10:15 
QuestionSQL Update and Refresh Quirk Pin
Spenceee21-Aug-07 3:19
Spenceee21-Aug-07 3:19 
AnswerRe: SQL Update and Refresh Quirk Pin
Rocky#22-Aug-07 0:52
Rocky#22-Aug-07 0:52 
QuestionFull Text Search in SQL Server 2005 with varbinary(max) Pin
Arindam Tewary21-Aug-07 2:35
professionalArindam Tewary21-Aug-07 2:35 
AnswerRe: Full Text Search in SQL Server 2005 with varbinary(max) Pin
DerekFL23-Aug-07 11:50
DerekFL23-Aug-07 11:50 
QuestionDTS Transformation Error Pin
Vipul Mehta20-Aug-07 22:59
Vipul Mehta20-Aug-07 22:59 
AnswerRe: DTS Transformation Error Pin
Vipul Mehta21-Aug-07 0:59
Vipul Mehta21-Aug-07 0:59 
Questioni need query Pin
bhattiprolu20-Aug-07 21:38
bhattiprolu20-Aug-07 21:38 
AnswerRe: i need query Pin
Programm3r20-Aug-07 21:42
Programm3r20-Aug-07 21:42 
GeneralRe: i need query Pin
bhattiprolu20-Aug-07 22:28
bhattiprolu20-Aug-07 22:28 
GeneralRe: i need query Pin
Programm3r20-Aug-07 22:32
Programm3r20-Aug-07 22:32 
GeneralRe: i need query Pin
bhattiprolu20-Aug-07 23:57
bhattiprolu20-Aug-07 23:57 
GeneralRe: i need query Pin
Colin Angus Mackay21-Aug-07 0:02
Colin Angus Mackay21-Aug-07 0:02 
GeneralRe: i need query Pin
Colin Angus Mackay20-Aug-07 23:34
Colin Angus Mackay20-Aug-07 23:34 
AnswerRe: i need query Pin
Nouman Bhatti21-Aug-07 20:58
Nouman Bhatti21-Aug-07 20:58 
AnswerRe: i need query Pin
T.EDY21-Aug-07 22:24
T.EDY21-Aug-07 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.