Hi all,
This may be a really noobish doubt, but still I need to know. I have this table which is something like:
tableCat
-----------
catID, primary key
catName
parentID
Which is something like, if the record doesn't have a parentID (which refers an catID), then the record is a category. If it does have a parentID, then it's a sub category. An example of a few records:
catID catName parentID
------------------------------
1 Vehicle (NULL)
2 Computer (NULL)
3 Books (NULL)
4 Car 1
5 Motorcycle 1
6 Hard-drive 2
(...)
Something like this. The thingy is, I want to put a lookup field for the parent's name, BUT since some of its values are NULL, then it will crash and burn... Is this possible at all? Is there an event I can treat so it works? Is there some hoodoo for it ? Help please, thnx in advance
This may be a really noobish doubt, but still I need to know. I have this table which is something like:
tableCat
-----------
catID, primary key
catName
parentID
Which is something like, if the record doesn't have a parentID (which refers an catID), then the record is a category. If it does have a parentID, then it's a sub category. An example of a few records:
catID catName parentID
------------------------------
1 Vehicle (NULL)
2 Computer (NULL)
3 Books (NULL)
4 Car 1
5 Motorcycle 1
6 Hard-drive 2
(...)
Something like this. The thingy is, I want to put a lookup field for the parent's name, BUT since some of its values are NULL, then it will crash and burn... Is this possible at all? Is there an event I can treat so it works? Is there some hoodoo for it ? Help please, thnx in advance