I have been trying to resolve a problem with writing data into a table. The code keeps giving an error..."Cannot append.."
I know the problem is with the data types in the destination table and I need to change something in this code to make it work. Any help is much appreciated.
Thanks
If recCount < 10 Then
For x = recCount + 1 To 10
criteria = "INSERT INTO tblRegistrationWeekMedia ( [Reg Id], Week ) "
criteria = criteria & "SELECT " & RegID & ", " & str$(x)
DoCmd.RunSQL (criteria)
Next x
End If
I know the problem is with the data types in the destination table and I need to change something in this code to make it work. Any help is much appreciated.
Thanks
If recCount < 10 Then
For x = recCount + 1 To 10
criteria = "INSERT INTO tblRegistrationWeekMedia ( [Reg Id], Week ) "
criteria = criteria & "SELECT " & RegID & ", " & str$(x)
DoCmd.RunSQL (criteria)
Next x
End If