H
Heather
I am trying to create combo boxes on a subform where the values in the second
box are dependant on the value selected in the first box.
Main form = TblITInventory
Subform = fsubSoftwareInventory
Combo1 = SoftwareCombo w/ Software as the record source
Combo2 = SerialNumberCombo w/ SerialNumber as the record source
I have used the following query as the row source for SerialNumberCombo:
SELECT TblSoftwareInventory.SerialNumber, TblSoftwareInventory.Software FROM
TblSoftwareInventory WHERE
(((TblSoftwareInventory.Software)=forms!fsubSoftwareInventory!SoftwareCombo));
It works fine when I open fsubSoftwareInventory as a main form. But if I
use it as a subform on frmITInventory I get the following:
Enter Parameter Value:
forms!fsubSoftwareInventory!SoftwareCombo
If I enter a value the information in displayed in the combo box is correct.
However, I'd like to have the query run behind the scenes for the user. I
have attempted to refresh the data in SerialNumberCombo by entering:
Me.SerialNumberCombo.Requery in several Properties (After Update, On Got
Focus, etc.) but nothing works. I have also tried setting up the initial
query to include the main form name:
SELECT TblSoftwareInventory.SerialNumber, TblSoftwareInventory.Software,
FROM TblSoftwareInventory WHERE
(((TblSoftwareInventory.Software)=forms!frmITInventory!fsubSoftwareInventory!SoftwareCombo));
Thank you in advance for your help.
box are dependant on the value selected in the first box.
Main form = TblITInventory
Subform = fsubSoftwareInventory
Combo1 = SoftwareCombo w/ Software as the record source
Combo2 = SerialNumberCombo w/ SerialNumber as the record source
I have used the following query as the row source for SerialNumberCombo:
SELECT TblSoftwareInventory.SerialNumber, TblSoftwareInventory.Software FROM
TblSoftwareInventory WHERE
(((TblSoftwareInventory.Software)=forms!fsubSoftwareInventory!SoftwareCombo));
It works fine when I open fsubSoftwareInventory as a main form. But if I
use it as a subform on frmITInventory I get the following:
Enter Parameter Value:
forms!fsubSoftwareInventory!SoftwareCombo
If I enter a value the information in displayed in the combo box is correct.
However, I'd like to have the query run behind the scenes for the user. I
have attempted to refresh the data in SerialNumberCombo by entering:
Me.SerialNumberCombo.Requery in several Properties (After Update, On Got
Focus, etc.) but nothing works. I have also tried setting up the initial
query to include the main form name:
SELECT TblSoftwareInventory.SerialNumber, TblSoftwareInventory.Software,
FROM TblSoftwareInventory WHERE
(((TblSoftwareInventory.Software)=forms!frmITInventory!fsubSoftwareInventory!SoftwareCombo));
Thank you in advance for your help.