Re: INSERT INTO exception
Welcome to VBForums :wave:
I recommend checking whether any of your field names (especially Number, but the others too) are Reserved Words, because using them as a field/table name confuses the query parser within the database system, which causes this kind of error.
For lists of Reserved words, see the article What names should I NOT use for tables/fields/views/stored procedures/...? from our Database Development FAQs/Tutorials (at the top of the Database Development forum)
Re: INSERT INTO exception
Hi, si_the_geek,
thank first of all for your interest, but... i've renamed all the fields of my access table with the prefix 'my'
(so, now i've:
myIDNumbInvoice: Primary Key - AutoIncrement Numeric Field
myNumber: Numeric
myNotes: Text
myDescription: Text
myQuantity: Text
myCost: Text
myImport: Text
myServicePayment: Text
myTariff: Text
mySimgleUse: Text
myBedAdd: Text
myKids: Text)
and the problem isn't solved.
I did not understand why in some sub all is ok but here all is wrong.
Thanx.
Re: INSERT INTO exception
There isn't anything obvious... but then we can't see your actual SQL statement, only the code which generates it.
Try temporarily changing objData.DatabaseCommand to Clipboard.SetText , you can then paste the value to Notepad so you can check it, or as a reply here so we can have a look.
Re: INSERT INTO exception
Hi, si_the_geek,
thank you, i've modified the code so i've see that the exception was generated because there was just a reserved word called "Note".
thx si_the_geek all was solved!