Good morning. I am a fresh newby here and somewhat new to Access 2010. I have a simple database that allows for updating my table known as InventoryItems. Each time I or someone else updates and adds new inventory via a form to this table, I have a button that automatically saves the info, and then sends a report as an excel file of the current record with a date and time stamp. That file is then used to import that record into my inventory file in Quickbooks.
What I am trying to do is rather than importing files in Quickbooks over and over again throughout the day, I have linked an excel file as a table into the database. However, when I attempt to use the following code
CurrentDb.Execute _
"INSERT INTO Updates SELECT * FROM InventoryItems Where [Item] = " & Me.[Item] & ";"
I get a Run-time error '3134': Syntax error in INSERT INTO statement.
I tested this code using an access table rather than a linked table and it worked just fine. However, I really need this info output/appending an excel file.
Any help would be greatly appreciated.