I'm parsing several fields that have been imported with comma delimited data into several tables. When I finish, there is some data I need to append to a table. I run a query in Access and it works fine, but if I run the same query in VB after the code parsing all the other data, using:
DoCmd.RunSQL "insNewRecords"
it won't run. The query is something like this:
---------
Insert into table1(filename, labelname) where labelname not in (select labelname from qryFindLabels).
---------------
[This may not be correct, but the query is okay from Access, so it works (my database is in a secure area, so I don't have the code handy).]
Several recordsets are open when I try the RunSQL, including the table to which I want to append.
Any help? Thanks,
Chris
DoCmd.RunSQL "insNewRecords"
it won't run. The query is something like this:
---------
Insert into table1(filename, labelname) where labelname not in (select labelname from qryFindLabels).
---------------
[This may not be correct, but the query is okay from Access, so it works (my database is in a secure area, so I don't have the code handy).]
Several recordsets are open when I try the RunSQL, including the table to which I want to append.
Any help? Thanks,
Chris