A
Ashwin Murali. T
I'm developing a supermarket application using VB.NET. I have a situation
where there are two tables namely Categories and SubCategories.
I have a form which has a combo box which lists the Categories present in
the Categories Table. I have a textbox where the user enters the data which
he wants to insert into the SubCategories table with the selected Category
as the foreign key.
The insertion must take place on the condition that no other value of the
same kind exists in the SubCategories table. How do i query for that and
find out from the dataset??? Or else, is there another way around for
this???
where there are two tables namely Categories and SubCategories.
I have a form which has a combo box which lists the Categories present in
the Categories Table. I have a textbox where the user enters the data which
he wants to insert into the SubCategories table with the selected Category
as the foreign key.
The insertion must take place on the condition that no other value of the
same kind exists in the SubCategories table. How do i query for that and
find out from the dataset??? Or else, is there another way around for
this???