Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WHERE (((table1.FIELD1)="HEADR"));" - I get an error

Status
Not open for further replies.

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...
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top