automation datatype in navision

jks
Member Posts: 277
hi all,
I am using automation data type of navision to transfer data from Access to navision table.
In my Access sheet some fields are blank. For this field i get an error.
How to solve it.
Thanks for any help.
I am using automation data type of navision to transfer data from Access to navision table.
In my Access sheet some fields are blank. For this field i get an error.
How to solve it.
Thanks for any help.
0
Comments
-
Maybe the field is not blank, it might contain a NULL. Try getting the value using a variable of type Variant.0
-
Hello Jsk,
I asume you use 'Microsoft DAO x.x Object Library'.DBEngine for accessing M$ Access, I had the same problem (Attain 3.60) and fixed it by replacing in the NULL in the Query and it worked for me. This is how I did it:Query := 'SELECT IIF( Table.StringField is null,"0",Table.StringField) as NewStringName, IIF( Table.DateField is null,0,Table.DateField) as NewDateName, FROM Table ORDER BY Table.StringField,Table.DateField';
Met vriendelijke groet, best regards,
Rvduuren0 -
I assume that you are inserting data into MS SQL server. See http://www.mibuso.com/forum/viewtopic.php?t=6530 for examples of settings... mainly "Maintain Defaults"...0
-
Hi all,
I checked 'Maintain Defaults' option. But still getting an error.
I also tried IIF. But it gives me an following error.
'No value given for one or more required parameter'
I am using
'Microsoft ActiveX Data Objects Recordset 2.5 Library'.Recordset
Please help0 -
You can use the Actualsize property of an ADO-field to check on Null-values. If the actual size = 0 then the value will probably be null.
Hope this helps. Greetz0 -
Hi all,
It was my mistake. IIF works. But I get some problem with it.
I have one field of type memo in my table. I handeled it like
iif(table1.memofield is null, "0", table1.memofield)
Problem is that I am getting only some portion of the memofield(when it is not null)
Please help.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions