Re: A relationships problem. FM8.5pro
- From: "Ursus" <ursus.kirk@xxxxxxxxxx>
- Date: Tue, 27 Mar 2007 16:08:58 +0200
"Hatzigiannakis Nikos" <nikos@xxxxxxx> schreef in bericht news:eualc4$a8v$1@xxxxxxxxxxxxxxxxxxxx
I have the following tables
Products_table
Product_id
Category_id
Subcategory_id
Categories_table
Category_id
Category_name
SubCategories_table
SubCategory_id
Category_id
SubCategory_name
And these Relationships
Products_table::Category_id = Categories_table::Category_id
Products_table::Subcategory_id = SubCategories_table::SubCategory_id
Categories_table::Category_id = SubCategories_table::Category_id
There are SubCategories for eatch Category
e.g Category 1 has SubCategories 1,2,3,...
Category 2 has SubCategories 1,2,3,...
The user selects the Category of the product and the SubCategory depending on the chosen Category.
I wand to find a way to prevent deleting a SubCategory when there are products belonging to that Category and SubCategory. In the beginning It.looks easy but I realized that in FM8.5 you can not name a relationship (like in FM.6.0) and you cannot reference an other file through a given relationship.
Any help will be appreciated
Nikos
- References:
- A relationships problem. FM8.5pro
- From: Hatzigiannakis Nikos
- A relationships problem. FM8.5pro
- Prev by Date: A relationships problem. FM8.5pro
- Next by Date: Re: A relationships problem. FM8.5pro
- Previous by thread: A relationships problem. FM8.5pro
- Next by thread: Re: A relationships problem. FM8.5pro
- Index(es):