T
Travis
I am trying to update a table using a sql string. I am getting a runtime
error '3024'. Using Access 2000. This is my code:
Private Sub Combo22_AfterUpdate()
Dim strCombo22 As String
Dim numAcctNum As Double
Dim db As Database
Dim sql1 As String
strCombo22 = Me.Combo22
numAcctNum = Me.Account_Number
Set db = CurrentDb()
sql1 = "UPDATE [Loan Info].[Account Number] SET [ModificationOption] =" &
strCombo22 & " WHERE [Account Number]=" & numAcctNum & ";"
DoCmd.RunSQL sql1
End Sub
error '3024'. Using Access 2000. This is my code:
Private Sub Combo22_AfterUpdate()
Dim strCombo22 As String
Dim numAcctNum As Double
Dim db As Database
Dim sql1 As String
strCombo22 = Me.Combo22
numAcctNum = Me.Account_Number
Set db = CurrentDb()
sql1 = "UPDATE [Loan Info].[Account Number] SET [ModificationOption] =" &
strCombo22 & " WHERE [Account Number]=" & numAcctNum & ";"
DoCmd.RunSQL sql1
End Sub