Hi,
I have currently set my recordset to the following:
So that when I insert data into a new table I can output the RecordNo and CarModel but I only want to look through the CarModel column. At the moment my code looks like this
But this looks through all columns so my results are doubled.
I have currently set my recordset to the following:
Code:
Set rs = db.OpenRecordset("SELECT RecordNo, CarModel FROM tblCarData WHERE CarModel Like 'Ford*'", dbOpenDynaset)
So that when I insert data into a new table I can output the RecordNo and CarModel but I only want to look through the CarModel column. At the moment my code looks like this
Code:
Do While Not rs.EOF
For Each fld In rs.Fields
strSql = "INSERT INTO tblCarDataResult (RecordNo,CarModel)" & _
"VALUES ('" & rs!RecordNo & "','" & rs!CarModel & "')"
DoCmd.RunSQL strSql
Next 'END FOR EACH
rs.MoveNext
Loop
DoCmd.SetWarnings True
But this looks through all columns so my results are doubled.