Cannot append to table

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I have: INSERT INTO Temp_Tbl Br, ONo, SCode, TR SELECT Or.Br, Or.ONo,
Or.SCode, Or.TR From OL WHERE OL.Br = """ & Br & """ AND OL.ONo = " & ONo

The only other way which is much slower is:
set rstfrom = recordset
set rstto = recordset
while not eof
wend

Thanks,
J
 
Jason

Not sure I have enough information.

What happens when you try these? Do you get error messages? If so, what do
they say?

More specific descriptions may lead to more specific suggestions.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
I haven't tried the rst - all the others I have used work - doing an append
this way would be slower? It's the currentdb.execute command (sorry left
that bit out and the error):
Run-time error '3134':
Syntax error in INSERT INTO statement.
 
Turns out I deleted all the () - Access adds them unneccassarily - but in
this instance the brackets are required around the target field names.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top