Miscalculation on a tabular form

dulaman
Member Posts: 73
Hello,
I'm facing a little but very nasty problem with a table-shaped form. I've got a function that I'm using to calculate one of the column/fields and everything goes OK. The funny thing is that if I move the focus downwards, my calculated field is right but if I move the focus upwards, the calculated field drives crazy!
I should mention that the real problem is just on displaying because when I copy & paste the form into an Excel sheet, all pasted data is perfect.
I don't want to convert my form into a report because my customer required me a form specifically and I can't "freeze" the whole form making it unfocusable because they still need to scroll down (BTW if I scroll down too far, the calculated column goes wrong again).
What can I do?
I'm facing a little but very nasty problem with a table-shaped form. I've got a function that I'm using to calculate one of the column/fields and everything goes OK. The funny thing is that if I move the focus downwards, my calculated field is right but if I move the focus upwards, the calculated field drives crazy!
I should mention that the real problem is just on displaying because when I copy & paste the form into an Excel sheet, all pasted data is perfect.
I don't want to convert my form into a report because my customer required me a form specifically and I can't "freeze" the whole form making it unfocusable because they still need to scroll down (BTW if I scroll down too far, the calculated column goes wrong again).
What can I do?
-- dulaman
"I don't want to believe. I want to know." (Carl Sagan)
"I don't want to believe. I want to know." (Carl Sagan)
0
Comments
-
Hi,
That problem occurs because you manually calculate a form variable for every record and show that variable as a column on the form...
I suggest if you are able to, to make that function a calculated field on the table... That way you will not have any problems on the form...0 -
Hello Arhontis
Please excuse my terrible delay on replying your message, I didn't realize that someone had answered me! :oops:
Yes, I know WHY I'm having problems in my form, but I cannot create a calculated field for that column -- I wish I could... but I can't!!
What I was trying to do was a three-column form: debit amount, credit amount and balance. This balance should be the classic "accumulated" balance that you can easily create in Excel: last balance + credit amount - debit amount. Of course the first line must have a different formula: credit amount - debit amount.
It sound really complicated -- well... IT IS!! I was just wondering if there was any kind of easy solution -- that kind that the smart guys around this forum use to give away. 8)
Anyway, if I find a solution I'll post it here.-- dulaman
"I don't want to believe. I want to know." (Carl Sagan)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