
Originally Posted by
Ajax
I've heard of Xero - it's the newish kid on the block for online accounting software. One of my clients uses it although I have not had any involvement myself. However the implication from the documentation is that the data is held on your servers, not online, so leaves me a bit confused.
@mcucino - your link makes things clearer. the requirement is to use an ODBC API which utilises a SQL style statement as a means of updating Xero Manual Journal tables, not Access ones. And from the documentation, the sql you quote only applies to manual journals (being one type of transaction in the application) - in other systems the data is usually supplied (more traditionally) in rows from a .csv or .txt file and passed through an import process. Reading through the documentation, what does surprise me is that when linked to a Xero table, you can make changes from Access - 'changes made to it will be reflected back to the underlying table in Xero.' I would think that could be really dangerous but I don't know enough about Xero to be sure.
Your error is the values (30, -20,etc), they are numeric and should not be surrounded by single quotes - check the documentation you provided and you will see. You may also need to include the decimals (ie. 30.00), depends how fussy Xero is.