Greetings experts.
In classic asp, you would assign a field name system date like this:
sql="insert into tableName (dateField) Values (#" & date()&"#)
I am using MS Access database.
How do you do the same us asp.net (vb)?
The following isn't working for me:
Thanks in advance
In classic asp, you would assign a field name system date like this:
sql="insert into tableName (dateField) Values (#" & date()&"#)
I am using MS Access database.
How do you do the same us asp.net (vb)?
The following isn't working for me:
Code:
cmdcommand = New OleDbCommand( _
"INSERT INTO Results (fDate) " & _
"VALUES (@fDate)",conn)
cmdcommand.Parameters("@fdate").Value = DateTime.Now.ToString("dd-MMM-yyyy")
Thanks in advance