Hi there,
I have a Date value similar to 28/03/2003 which when I use the calculation
MyDate = "#"&Year ( MyDate ) & "-" & Month(MyDate ) & "-" & Day( MyDate ) &"#" gives the output as #2003-1-23#.
But when I insert this date value to the SQL Server it says an error as
"'#2003' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted"
When I used the same calc without "#", it inserts the date as "1905-06-03" which I did not expect.
I'm not quite sure how to insert the date to the database. Kindly help me plsss..
Thanks
Faheem
I have a Date value similar to 28/03/2003 which when I use the calculation
MyDate = "#"&Year ( MyDate ) & "-" & Month(MyDate ) & "-" & Day( MyDate ) &"#" gives the output as #2003-1-23#.
But when I insert this date value to the SQL Server it says an error as
"'#2003' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted"
When I used the same calc without "#", it inserts the date as "1905-06-03" which I did not expect.
I'm not quite sure how to insert the date to the database. Kindly help me plsss..
Thanks
Faheem