Ask a Question related to ASP Database, Design and Development.
-
Mr. x #1
access db date parameter error
Hello,
I am using access database in aspx.
I did something like this :
....
currParam = new oleDbParameter("@create_date", OleDbType.DBTimeStamp)
currParam.value = Now
cmd.parameters.add(currParam)
In the sql I wrote :
insert into mytable ( ... , create_date , ....)
values( ..., @create_date, ...)
When execute the query I get an error :
Data type mismatch in criteria expression.
What is the problem ?
Thanks :)
Mr. x Guest
-
Custom Component - parameter access
Hi, I am doing a demo for my own learning purposes, and I have a cutom MXML component that display XML data in grid format (not a repeater, but... -
Access date parameter problem
I have been struggling with this for days. I am using a form to retrieve a list of dates and of store numbers. The user selects a date and store... -
Exception error with date/time (Access 2000)
I am picking up a strange exception error for the following statement: If Rs.EOF OR DATEDIFF("d",rs("DateTime"),NOW()) Then '// End If Is... -
Date Parameter For Saved Parameter Queries
Hi again, I finally got to using saved parameter queries in my application (a big thank you to Bob Barrows for helping me with this). Currently... -
#26207 [NEW]: date(): add format parameter for colons in UTC offset
From: danielc at analysisandsolutions dot com Operating system: irrelevant PHP version: Irrelevant PHP Bug Type: ... -
Frogbčrt #2
Re: access db date parameter error
"Mr. x" <a@b.com> wrote in message news:3f511bd6@news.012.net.il...
OleDbType.DBTimeStamp)> Hello,
> I am using access database in aspx.
> I did something like this :
> ...
> currParam = new oleDbParameter("@create_date",<snip>> currParam.value = Now
> cmd.parameters.add(currParam)
Format your currParam using the proper identifier (mind the wrap):
currParam.value="#" & FormatDateTime(Now) & "#"
HTH
Robert
Frogbčrt Guest



Reply With Quote

