K
Kassie
In response to my previous post, titled cascading lists, pietlinden suggested
a solution as offered by http://www.mvps.org/access/forms/frm0028.htm, adding
on that I should place my categories and subcategories in one table, indexing
Categories and allowing duplicates.
I tried this solution, but cannot get it to work!
I work in tblDecisions, and use an input form to input data into this table.
As stated previously, the fields in this table include inter alia the
following:
DecNr - Number;
DecDate - Date;
DecCat - I changed this to text;
DecSubCat - Text;
DecRevAsk - Date;
DecRevTaken - Date; and
DecAct - Yes/No
I then created a table - tblCategory, with fields Cat and SubCat, with
field Cat indexed as
Dup OK, and entered a list of categories and subcategories as you suggested.
On the input form, I have inter alia cbxCat and cbxSubCat, which would
obviously then
not get info from tblDecisions, but from tblCategories? Be that as it may,
if I set cbxCat's RowSourceType to Field list, and
RowSource to tblCategory, then when I click on the combobox, I see "Cat" and
"SubCat", instead of a listing of the categories. If I select Cat, I get a
listing of Categories under cbxSubCat - all instances of each category. If I
select SubCat, I get a listing of ALL the sub categories under cbxSubCat.
If I set the RowSourceType for cbxCategory to value list, and click on the
down arrow, I get "tblCategory". cbxSubCat obviously remains blank.
If I set the RowSourceType to Table/Query, and click on the down arrow, I
get a listing of all the records under Category in tblCategory, and not an
indexed list. If a category has 6 sub categories, I will see 6 instances of
that category. If I then select a category, and click the down arrow of
cbxSubCat, I get an inputbox "Enter Parameter Value" with the name of the
category I selected in cbxCat,above the textbox, and with OK and Cancel
buttons below the textbox.
By the way, I am using Acces 2002. Am I totally on the wrong track here, or
should I stick
to what I know, Excel, where this is a very simple and easy thing to do!
The church wants this in a database, rather than Excel, and I am merely
trying to oblige, but it is becoming a pain in the butt exercise!
Regards
a solution as offered by http://www.mvps.org/access/forms/frm0028.htm, adding
on that I should place my categories and subcategories in one table, indexing
Categories and allowing duplicates.
I tried this solution, but cannot get it to work!
I work in tblDecisions, and use an input form to input data into this table.
As stated previously, the fields in this table include inter alia the
following:
DecNr - Number;
DecDate - Date;
DecCat - I changed this to text;
DecSubCat - Text;
DecRevAsk - Date;
DecRevTaken - Date; and
DecAct - Yes/No
I then created a table - tblCategory, with fields Cat and SubCat, with
field Cat indexed as
Dup OK, and entered a list of categories and subcategories as you suggested.
On the input form, I have inter alia cbxCat and cbxSubCat, which would
obviously then
not get info from tblDecisions, but from tblCategories? Be that as it may,
if I set cbxCat's RowSourceType to Field list, and
RowSource to tblCategory, then when I click on the combobox, I see "Cat" and
"SubCat", instead of a listing of the categories. If I select Cat, I get a
listing of Categories under cbxSubCat - all instances of each category. If I
select SubCat, I get a listing of ALL the sub categories under cbxSubCat.
If I set the RowSourceType for cbxCategory to value list, and click on the
down arrow, I get "tblCategory". cbxSubCat obviously remains blank.
If I set the RowSourceType to Table/Query, and click on the down arrow, I
get a listing of all the records under Category in tblCategory, and not an
indexed list. If a category has 6 sub categories, I will see 6 instances of
that category. If I then select a category, and click the down arrow of
cbxSubCat, I get an inputbox "Enter Parameter Value" with the name of the
category I selected in cbxCat,above the textbox, and with OK and Cancel
buttons below the textbox.
By the way, I am using Acces 2002. Am I totally on the wrong track here, or
should I stick
to what I know, Excel, where this is a very simple and easy thing to do!
The church wants this in a database, rather than Excel, and I am merely
trying to oblige, but it is becoming a pain in the butt exercise!
Regards