Aug 19, 2004 #1 scottian Programmer Jul 3, 2003 955 GB I have this :- DoCmd.RunSQL "INSERT INTO HEADR ( FIELD1 ) SELECT table1.FIELD1, table1.* FROM table1 WHERE (((table1.FIELD1)="HEADR"));" but access doesnt like it and highlights the HEADR in "HEADR" any suggestions "My God! It's full of stars...
I have this :- DoCmd.RunSQL "INSERT INTO HEADR ( FIELD1 ) SELECT table1.FIELD1, table1.* FROM table1 WHERE (((table1.FIELD1)="HEADR"));" but access doesnt like it and highlights the HEADR in "HEADR" any suggestions "My God! It's full of stars...
Aug 19, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR You must have the same number of columns (ie one) in your select clause as in the insert into one. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
You must have the same number of columns (ie one) in your select clause as in the insert into one. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244