I have a form / subform where the main form holds Company details, and the subform holds Contact details.
On the main form I have a combo box with 3 columns: CoName, CoLocation, CoID. CoID is the bound column, but it is also HIDDEN. On the subform I want all Contacts associated with the Company [the value of CoID] selected in the combo box to display.
I have included this code snippet ([forms]![f_CompanyInfo]![cboCompany].[column(2)].[value]) in the criteria for the record source of the subform, but it is not working. I am persistently prompted for a parameter value when the form opens.
I think its one of two things:
1/ the syntax of the code snippet is wrong??
2/ the code snippet does not recognise combo box columns that are HIDDEN??
Any ideas on resolving this one?
cheers
On the main form I have a combo box with 3 columns: CoName, CoLocation, CoID. CoID is the bound column, but it is also HIDDEN. On the subform I want all Contacts associated with the Company [the value of CoID] selected in the combo box to display.
I have included this code snippet ([forms]![f_CompanyInfo]![cboCompany].[column(2)].[value]) in the criteria for the record source of the subform, but it is not working. I am persistently prompted for a parameter value when the form opens.
I think its one of two things:
1/ the syntax of the code snippet is wrong??
2/ the code snippet does not recognise combo box columns that are HIDDEN??
Any ideas on resolving this one?
cheers