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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is wrong with this SQL

Status
Not open for further replies.

PerryG

Programmer
Joined
Aug 15, 2000
Messages
75
Location
US
It keeps throwing a run-time error 3141

DoCmd.RunSQL "INSERT INTO Resent_FileExtracts ( SUPPLIER, PART_NUMBER, AFN, DATE ) SELECT [" & strFullName & "].Company, [" & strFullName & "].[Part Number], """ & strAFN & """, """ & strDate & """ FROM [" & strFullName & "];"

The part that's torching my ulcer is that it ran two days ago just fine using exactly the same tables.

Thanks one and all.

PerryG
 
my bad.....runtime error 3134

Thanks.

PerryG
 
....even worse.....I was using a reserved word as a field name.....do I hear laughter?....it's ok....it's deserved.

Thanks for the interest.

PerryG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top