Problem in Inserting date values from VB to Oracle database [message #99880] |
Wed, 08 May 2002 21:16 |
Charanjit
Messages: 1 Registered: May 2002
|
Junior Member |
|
|
Dear Friends,
If somebody can help me with the insert query I am executing in the VB6.
I want to insert values from Text boxes of VB to their corresponding fields. The query is written below. I am receiving error no 13. "Type Mismatch"
-----------------------------------------------
v_TxtDoj = cDate (TxtDoj)
v_TxtDoc = CDate (TxtDoc)
sqlquery = "Insert into empmaster(empid, ename, joindate, confirmdate) values (" + cint(TxtEmpid)+ ",'" + TxtEname + "'," + "To_Date ('" + v_txtdoj + "', 'dd/mm/yyyy')," + "To_Date ('" + v_txtdoc + "', 'dd/mm/yyyy')"
----------------------------------------------------
I am receiving error on this SqlQuery message. Please explain the correct syntax while inserting date values.
Charanjit
|
|
|
|
|