this is my code for inserting the data. there are 3 fields that are
with timestamp data type;
1. taggingTime
2. lastActvTime
3. purTime
thanks..
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim oConn As OleDbConnection
Dim oComm As OleDbDataAdapter
Dim ConnectionString As String
Dim sComm As String
Dim oDataSet As New DataSet
Dim oDataSet03 As New DataSet
'SQLstring insert
sComm = "INSERT INTO linen "
sComm += "(tagID,status,taggingTime,"
sComm += "lastWashLoc,lastActvID,lastActvTime,"
sComm += "type,supplier,purTime) "
sComm += "VALUES "
sComm += "(' " & TextBox1.Text & " ',' " & TextBox2.Text & " ',' " & TextBox3.Text & " ',"
sComm += "' " & TextBox4.Text & " ',' " & TextBox5.Text & " ',' " & TextBox8.Text & " ',"
sComm += "' " & DropDownList1.SelectedValue & " ',' " & DropDownList2.SelectedValue & " ',' " & TextBox9.Text & " ')"
'Error handling
Try
'Create the connection and command objects
oConn = New OleDbConnection(ConfigurationSettings.AppSettings("ConnectionString"))
oComm = New OleDbDataAdapter(sComm, oConn)
oComm.Fill(oDataSet03, "linenn")
Catch ex As Exception
Label3.Text = ex.ToString()
Finally
oComm.Dispose()
oConn.Close()
End Try
End Sub