L
lmnorms1
Hello,
I am trying to update an access database record date field that matches
a specific date. The code is not working. Anyone have any advice?
Here is the code:
Dim gConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Customer development\VBNET\CSFV\CSFV.mdb;"
Dim Conn As New OleDbConnection(gConnString) 'Actual
Connection to database.
Conn.Open()
Dim SqlStatement As String = "UPDATE LetterData " & _
"Set DateSenttoPrint = #" & shtDt & "# " & _
"WHERE ID = '" & RecordID & "' " & _
";"
Dim Command As New OleDbCommand(SqlStatement, Conn)
Command.ExecuteNonQuery()
Command.ExecuteNonQuery is were the code crashes.
Any advice would be apprieciated.
(e-mail address removed)
I am trying to update an access database record date field that matches
a specific date. The code is not working. Anyone have any advice?
Here is the code:
Dim gConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Customer development\VBNET\CSFV\CSFV.mdb;"
Dim Conn As New OleDbConnection(gConnString) 'Actual
Connection to database.
Conn.Open()
Dim SqlStatement As String = "UPDATE LetterData " & _
"Set DateSenttoPrint = #" & shtDt & "# " & _
"WHERE ID = '" & RecordID & "' " & _
";"
Dim Command As New OleDbCommand(SqlStatement, Conn)
Command.ExecuteNonQuery()
Command.ExecuteNonQuery is were the code crashes.
Any advice would be apprieciated.
(e-mail address removed)