I'm trying to design some cascading combo boxes for a form.
The tables I'm using are as follows.
tblProdType
lngProdTypeID.........primary key
chrProdType
tblProductInfo
lngProdID.........primary key
chrProductName
chrProdTypeCR......this is for commission purposes
chrState
lngProdTypeID......foreign key
I have a form with two combo boxes. Both have properties as follows:
ColumnCount = 2
The SQL for the first combo box is as follows:
SELECT tblProdType.lngProdTypeID, tblProdType.chrProdType
FROM tblProdType
ORDER BY tblProdType.chrProdType;
The SQL for the second combo box is as follows:
SELECT tblProductInfo.lngProdID, tblProductInfo.chrState
FROM tblProductInfo
WHERE (tblProductInfo.lngProdTypeID)=[FORMS]![frmSaleProductInfo]![cboProdType]
ORDER BY tblProductInfo.chrState;
Also, the AfterUpdate event for the first combo box contains this code:
me.cboState.Requery
When I try to use the combo boxes I get a message box asking me to enter a parameter. The text is as follow:
Enter Parameter Value
Forms!frmSaleProductInfo!cboProdType
I've been working on this for like 4 hours. I'm complete new to this, but I have this exactly as all the FAQ's I've seen do as well.
What am I missing???
Thanks.
The tables I'm using are as follows.
tblProdType
lngProdTypeID.........primary key
chrProdType
tblProductInfo
lngProdID.........primary key
chrProductName
chrProdTypeCR......this is for commission purposes
chrState
lngProdTypeID......foreign key
I have a form with two combo boxes. Both have properties as follows:
ColumnCount = 2
The SQL for the first combo box is as follows:
SELECT tblProdType.lngProdTypeID, tblProdType.chrProdType
FROM tblProdType
ORDER BY tblProdType.chrProdType;
The SQL for the second combo box is as follows:
SELECT tblProductInfo.lngProdID, tblProductInfo.chrState
FROM tblProductInfo
WHERE (tblProductInfo.lngProdTypeID)=[FORMS]![frmSaleProductInfo]![cboProdType]
ORDER BY tblProductInfo.chrState;
Also, the AfterUpdate event for the first combo box contains this code:
me.cboState.Requery
When I try to use the combo boxes I get a message box asking me to enter a parameter. The text is as follow:
Enter Parameter Value
Forms!frmSaleProductInfo!cboProdType
I've been working on this for like 4 hours. I'm complete new to this, but I have this exactly as all the FAQ's I've seen do as well.
What am I missing???
Thanks.