Insertion of same fields from one table to the other
Freaky
Member Posts: 125
Hi Guys, I have two tables Table1 and Table2. Table1 has primary keys -Line No.,Employee No. and Table2 has primary key - line no only. Please how can I transfer fields from Table2 to Table1 on a report by coding.
Please assist
Thanks in advance.
Please assist
Thanks in advance.
0
Comments
-
-
This example shows how to use the FINDSET function to loop through a set and update a field that is within the current key.
Copy Code
SalesShptLine.SETRANGE("Order No.",SalesLine."Document No.");
SalesShptLine.SETRANGE("Order Line No.",SalesLine."Line No.");
SalesShptLine.SETCURRENTKEY("Order No.","Order Line No.");
IF SalesShptLine.FINDSET(TRUE, TRUE) THEN BEGIN
REPEAT
SalesShptLine."Order Line No." := SalesShptLine."Order Line No." + 10000;
SalesShptLine.MODIFY;
UNTIL SalesShptLine.NEXT = 0;
END;Veerendra Ch.
http://midynav.blogspot.com/ (Microsoft Dynamics Navision)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
