I keep on getting a type mismatch with the line of code below
Set rs = db.OpenRecordset("temp", dbOpenDynaset)
Below is the code
Private Sub Text43_Change()
Dim db As Database
'Dim qdf As QueryDef
'Dim strSQL As String
Dim rs As Recordset
Dim i As Integer
Set db = CurrentDb
Set rs = db.OpenRecordset("temp", dbOpenDynaset)
'DoCmd.RunSQL "Delete * from tblAddressMatch"
If Not (IsNull(Text43)) Then
For i = 1 To Text43
rs.AddNew
rs!Text43 = Text43
rs.Update
Next i
End If
Text43 = Null
End Sub
Set rs = db.OpenRecordset("temp", dbOpenDynaset)
Below is the code
Private Sub Text43_Change()
Dim db As Database
'Dim qdf As QueryDef
'Dim strSQL As String
Dim rs As Recordset
Dim i As Integer
Set db = CurrentDb
Set rs = db.OpenRecordset("temp", dbOpenDynaset)
'DoCmd.RunSQL "Delete * from tblAddressMatch"
If Not (IsNull(Text43)) Then
For i = 1 To Text43
rs.AddNew
rs!Text43 = Text43
rs.Update
Next i
End If
Text43 = Null
End Sub