Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
meetas
Starting Member
6 Posts |
Posted - 2003-03-11 : 13:14:45
|
| I always get stuck. I try code I used & working, but it will not work. Ok so here is my question.Database - AccessI've 3 tablesCAtegory - where categorynames are stored. fields: categoryid - datatype - textDescription - Name of category - datatype - textSecond tablePromocategory - which shows only those category wchich has promotion going on.Fields: pcatid - comes from categoryid tablepsubcatapp - If subcategory applies datatype y/nThird tablepromoscat_catappfor some of these categories, subcategories are applied. So this table stores that information.fieldsprsscatapp - subcategoryid comes form promotional subcategoryprscatapp - categroy id to which subcategory is applied.Now I want to display all promotional category. That can be done by sql statement belowsql = "select categories.*, promocategory.* from categories, promocategory where categories.categoryid = promocategory.pcatid " now how can I show categories which are selected as checked and categories not selected not checked. Category name will be displayed as checkbox. I'm not quite sure as how to connect third table promoscat_catapp, so that it checks if catgoryid is in that table and subcategoryid(i've do have that value passed from earlier page) = to subcategory id in the table.Any help will be greatly appreciated.Thanks in advance |
|
|
|
|
|