SQL Problem

D

DS

I'm trying to run this SQL statement from a listbox, OnClick Event in
Access to insert a new record into a Query and I keep getting a message
that it's not reconized. I don't know why.....any help is appreciated.
Thanks
DS

INSERT SalesID
INTO SalesDetailsQ
VALUES Forms!Buttons!List215.Column(0)
 
G

Guest

Try this

INSERT INTO SalesDetailsQ ( SalesID) VALUES (Forms!Buttons!List215.Column(0))
 

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

No Records Then 4
SQL Synatx Incorrect 6
SQL Syntax Problem 2
Better Coding 2 SQL Commands 3
Add Two Values Within An SQL Statement 2
SQL SubQuery 10
TIME DATE Problem 5
Why SQL command doesn't work 4

Top