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)
 
O

Ofer

Try this

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