Hi everyone! I'm newbie Dynamics Nav programming, I use Dynamics Nav 4.0 SP2, and I need to import into DBase file (*.dbf) some field of Item table. How I can to do this? I've thought to use 2 Automations variables (Microsoft ActiveX Data Objects 2.5 Library), but I've not to find any documentation how I use this ones...
Thank you for your suggest.
0
Comments
How to use ADO in NAV read this little Tip&Trick: viewtopic.php?f=5&t=23038
Regards
repeat
DBFFile.fields().Item('ITEMCODE').value := Item."No.";
DBFFile.fields().Item.('DESCRIPTION').value := Item.Description;
....
DBFFile.insert();
until Item.next = 0;
Thank you for replies.
Which subtype is your variable DBFFile (RecSet?)
Regards
DBFFile Automation 'Microsoft ActiveX Data Objects 2.5 Library'.Recordset
Microsoft ActiveX Data Objects 2.5 Library'.Recordset -> and from where is the function "DBFFile.insert();" <- insert doesn't exist.
So, with your solution (AdoRecSet.fields().Item('ITEMCODE').value := Item."No.";) you should use the update command
Regards