Y
Yannick
Hi,
I've got a problem accessing a ms-access db with a sql statement like
this:
SELECT * FROM laTable WHERE laDate = #05/21/2004# ;
with asp.net (vb code)
laTable contains a "laDate" datetime field .
Request works in ms-access, but not in asp.net,
I get "internal automation error" on line:
OleDbDataAdapt.ExecuteReader()
I can't understand...
If I run a request with a "where" on something other than a date stuff,
it works both in access and asp.
I've tried some other things:
with " ' " => donnees incompatibles dans le critere
with date and time => automation error
with LIKE instead of " = " => automation error
I'm busy with that since now a few days...
thanks for any help
-- yannick --
PS:
config:
access 2000 database / asp.net framework 1.1 / VS.net
code:
requete = "SELECT * FROM laTable WHERE laDate = #05/21/2004#
OleData_prod.SelectCommand.Connection = OLE_dataBase
OleData_prod.SelectCommand.CommandType = CommandType.Text
OleData_prod.SelectCommand.CommandText = requete
OleData_prod.SelectCommand.Connection.Open()
OleData_prod.SelectCommand.ExecuteReader()
OleData_prod.SelectCommand.Connection.Close()
OleData_prod.Fill(leDataset)
I've got a problem accessing a ms-access db with a sql statement like
this:
SELECT * FROM laTable WHERE laDate = #05/21/2004# ;
with asp.net (vb code)
laTable contains a "laDate" datetime field .
Request works in ms-access, but not in asp.net,
I get "internal automation error" on line:
OleDbDataAdapt.ExecuteReader()
I can't understand...
If I run a request with a "where" on something other than a date stuff,
it works both in access and asp.
I've tried some other things:
with " ' " => donnees incompatibles dans le critere
with date and time => automation error
with LIKE instead of " = " => automation error
I'm busy with that since now a few days...
thanks for any help
-- yannick --
PS:
config:
access 2000 database / asp.net framework 1.1 / VS.net
code:
requete = "SELECT * FROM laTable WHERE laDate = #05/21/2004#
OleData_prod.SelectCommand.Connection = OLE_dataBase
OleData_prod.SelectCommand.CommandType = CommandType.Text
OleData_prod.SelectCommand.CommandText = requete
OleData_prod.SelectCommand.Connection.Open()
OleData_prod.SelectCommand.ExecuteReader()
OleData_prod.SelectCommand.Connection.Close()
OleData_prod.Fill(leDataset)