Table Relation!!!!

Hanen
Member Posts: 281
Hello,
I'm using the customer table and two others tables that I have created.
I have a customer No Field in both of my tables and when I set the propriety table relation to customer."customer No" in my first table it works but when I set the same propriety in my second table to "table 1".""Customer No. it didn't works

How can I deal with that problem, it's very urgent!!!!!
Thanks for the answer!!!
Regards
Hanen TALBI
Hanen TALBI
0
Answers
-
What will there not work?
Will there a error message displayed or what is?when I set the propriety table relation to customer."customer No" in my first table it works
U mean the repaltion to table customer field "No.". Field "customer No" doesn't exist in the table customer. Or is this a customized field?Do you make it right, it works too!0 -
Yessss, the repaltion to table customer field "No." doesn't exist on the "customer No" field of the second table!!!!Regards
Hanen TALBI0 -
mmmmm........does the customer code on your "second table" exists in your Customer table?
if not, what did you expect to receive instead of an error?
e.g.: if you have in your second table the field "customer no." populated with 'dskjfladsjf' value and you don't have a customer with code 'dskjfladsjf' in your customer table.0 -
Hi!
Uhm ... I'm not sure if I understood this correctly ... :oops:
So what we have is this (if I don't err):
T18 "Customer"
Table1: There is a field "Customer No." which relates to Customer."No." and works OK
Table2: There is a field which relates to Table1."Customer No." which does not work.
Right? If this is the case, then the reason is obvious: You can only relate to "Primary Key Fields" of the referred table!
If Table1."Customer No." is relating to the Customer."No." it relates to the PK of table "Customer" - all OK.
But if your Table2."Customer No." should refer to Table1."Customer No." this is only possible if "Customer No." is part of the PK in Table1 ...
Could this be the issue? Could you just relate Table2."Customer No." to Customer."No." instead?
Or did I get it wrong ?!?Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
hi.....
as far i understand u r question, you have to put simply table name(customer) on the table relation propertey of that field.also check PK of both table.0 -
[Topic moved from 'SQL General' forum to 'NAV/Navision' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks for yours answers,
it was a problem with primary keys, now it works:thumbsup:
Regards
Hanen TALBI0
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