T
Tom
I am recieving the following runtime error message when I
run the code below: "The number of query values and
destination fields are not the same".
Dim strSQL As String
Dim strClaimNumber As String
Dim strInjuryType1 As String
Dim strInjuryType2 As String
strSQL = "INSERT INTO tblInjuriesperClaimECA([ClaimNumber],
[InjuryType1],[InjuryType2])VALUES (strClaimNumber &
strInjuryType1 & strInjuryType2);"
CurrentDb.Execute strSQL
From what I see, the number of values are the same, so I
don't know why that error message is coming up. The field
types are also the same. Any ideas?
Thank you for your help
run the code below: "The number of query values and
destination fields are not the same".
Dim strSQL As String
Dim strClaimNumber As String
Dim strInjuryType1 As String
Dim strInjuryType2 As String
strSQL = "INSERT INTO tblInjuriesperClaimECA([ClaimNumber],
[InjuryType1],[InjuryType2])VALUES (strClaimNumber &
strInjuryType1 & strInjuryType2);"
CurrentDb.Execute strSQL
From what I see, the number of values are the same, so I
don't know why that error message is coming up. The field
types are also the same. Any ideas?
Thank you for your help