Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Data Type mismatch in criteria

$
0
0
hello all, i got error at update code,
while i click update, i got error at data type mismatch incriteria,,
i know the error at
([S/N] = '" & S_NTextBox.Text & "')"
here
but i dont know what i need to fill for the S/N
this is my update code

con = New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\notifdb.accdb")
        Dim cmdUpdate As New OleDbCommand
        con.Open()
        cmdUpdate.CommandText = "UPDATE NFTB SET REMARKS = '" & REMARKSTextBox.Text & "', TIME_IN = '" & TIME_INTextBox.Text & "', TIME_OUT = '" & TIME_OUTTextBox.Text & "', CHECKED_IN = '" & CHECKED_INTextBox.Text & "', CHECKED_OUT = '" & CHECKED_OUTTextBox.Text & "', IN_ON = '" & IN_ONTextBox.Text & "', OUT_ON = '" & OUT_ONTextBox.Text & "', APP = '" & APPTextBox.Text & "' WHERE ([S/N] = '" & S_NTextBox.Text & "')"
        cmdUpdate.CommandType = CommandType.Text
        cmdUpdate.Connection = con
        cmdUpdate.ExecuteNonQuery()
        con.Close()
        cmdUpdate.Dispose()

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>