Jishnu Surendran
New Member
- Joined
- Jul 29, 2013
- Messages
- 32
I have to insert some data into an .mdb file from an excel worksheet. The ADO connection was created successfully. The 'insert into' query has to be combined with 'where not exists' to avoid inserting duplicate data. I have to select some data from a worksheet of the active workbook (say 'c') to query the 'where not exists' part. Tried the following:
Insert into................Select * From ([c]) Where Not Exists (.......).
I am getting a 'syntax error for from clause' error. Any help on how to select the data from a sheet of current workbook using sql.
Insert into................Select * From ([c]) Where Not Exists (.......).
I am getting a 'syntax error for from clause' error. Any help on how to select the data from a sheet of current workbook using sql.