Ask a Question related to Coldfusion Database Access, Design and Development.
-
neilorourker #1
Entering date into Access
I'm sure this is basic level stuff but I've been away for a year so please bear
with me.
Basically I want a date entered into a form inserted into Access. I have tried
the following
Format inputed inthe form: '25/05/2005'
Line in update query:
setupdate = '#CreateODBCDate(form.setupdate)#',
Cheers
Neil
neilorourker Guest
-
CFC & Null Date & Access
hi all, i'm stumped on the following problem, and below is some simple example code of the problem. i would like to know how to UPDATE the... -
entering data into MS Access database
Hello, I'm creating an online survey using XHTML -- no PHP -- where the data will be entering into a MS Access database, and I am having trouble... -
MS Access + date query
Hi I have got access table with two date/time field namely field1 and field2. I made one html form that inputs two dates (it's not mandatory... -
Problem of Date with MS Access
I am trying to display the records which the date (the Name field is Period) are greater than today's date from MS Access. It works fine except that... -
ASP - Access - Date() problem...
In Access, the Format property* effects only the manner in which the date is displayed, not how it is stored. Jet stores dates a a Double number,... -
SilverStrike #2
Re: Entering date into Access
basically, the way I work with dates is using three select boxes (for year,
month and day).
and then, to insert the data into the DB I use the following:
date = #CreateODBCDate(CreateDate(FORM.year, FORM.month, FORM.day))#
Where FORM.year, FORM.month and FORM.day are the names of the select boxes.
The problem with your example is, that you can't know how the user inputed the
data into the field.
SilverStrike Guest
-
mxstu #3
Re: Entering date into Access
Also, you do not need to use single quotes around the CreateODBCDate() function.
HTH
mxstu Guest
-
neilorourker #4
Re: Entering date into Access
cheers
I tried that recieved the following error when running the update query:
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in
query expression ''{d '2005-05-25'}''.
SQL = "UPDATE tbl_artists SET setupdate = '{d '2005-05-25'}' WHERE
tbl_artists.artistid=118"
the form variables were set as follows:
<cfset setupdate= #CreateODBCDate(CreateDate(FORM.setupyear, FORM.setupmonth,
FORM.setupday))#>
neilorourker Guest
-
SilverStrike #5
Re: Entering date into Access
Please include in the insert query.
It seems you use single quotes. it seems this is the problam.
SilverStrike Guest
-



Reply With Quote

