larrydavid
Programmer
Hello,
I'm updating 2 columns in my back-end SQL Server table based on the value in my dropdown list:
Private Sub ComboReturnSource_AfterUpdate()
Dim strSQL As String
Dim dbs As DATABASE
If Me.ComboChkReturnSource = "TEST1" Then
Set dbs = CurrentDb()
strSQL = "UPDATE dbo_TEST1 [Entity] = 0808 WHERE dbo_TEST1.ID = '" & Me.ID.Value & "'"
dbs.Execute strSQL, dbFailOnError + dbSeeChanges
Set dbs = Nothing
Set dbs = CurrentDb()
strSQL = "UPDATE dbo_TEST1 SET [ExpCode] = 20230 WHERE dbo_TEST1.ID = '" & Me.ID.Value & "'"
dbs.Execute strSQL, dbFailOnError + dbSeeChanges
Set dbs = Nothing
End If
The problem I'm having is when I tab to the next field in the form it keeps asking to Copy to Clipboard or Drop Changes. I've tried setting Me.Dirty = True after the update but that isn't working.
Any help with this would be greatly appreciated.
Thanks,
Larry
I'm updating 2 columns in my back-end SQL Server table based on the value in my dropdown list:
Private Sub ComboReturnSource_AfterUpdate()
Dim strSQL As String
Dim dbs As DATABASE
If Me.ComboChkReturnSource = "TEST1" Then
Set dbs = CurrentDb()
strSQL = "UPDATE dbo_TEST1 [Entity] = 0808 WHERE dbo_TEST1.ID = '" & Me.ID.Value & "'"
dbs.Execute strSQL, dbFailOnError + dbSeeChanges
Set dbs = Nothing
Set dbs = CurrentDb()
strSQL = "UPDATE dbo_TEST1 SET [ExpCode] = 20230 WHERE dbo_TEST1.ID = '" & Me.ID.Value & "'"
dbs.Execute strSQL, dbFailOnError + dbSeeChanges
Set dbs = Nothing
End If
The problem I'm having is when I tab to the next field in the form it keeps asking to Copy to Clipboard or Drop Changes. I've tried setting Me.Dirty = True after the update but that isn't working.
Any help with this would be greatly appreciated.
Thanks,
Larry