K
Ken
I'm able to update a MS Access 2007 table using the following Update statement:
strSQL = "UPDATE dbo_tblTrans SET TransDate = '" & Me.TransDate & "',
TransType = '" & Me.TransType & "' WHERE ID = " & Me.TransID
As you can see, my strSQL string gets it's values from fields on a form.
As I said, it works fine (most of the time). However, if the Me.TransDate
field is empty on my form, I get a "type conversion failure". Obviously, I'm
not handling a null situation. Suggestions? Thanks.
strSQL = "UPDATE dbo_tblTrans SET TransDate = '" & Me.TransDate & "',
TransType = '" & Me.TransType & "' WHERE ID = " & Me.TransID
As you can see, my strSQL string gets it's values from fields on a form.
As I said, it works fine (most of the time). However, if the Me.TransDate
field is empty on my form, I get a "type conversion failure". Obviously, I'm
not handling a null situation. Suggestions? Thanks.