Combo in subform

K

kathy b

I have a combo box in a subform of another subform. The linking field is
called IRB Number. The combo box row source is as follows:

SELECT [tbl Budget].[IRB Number], [tbl Budget].[Budget ID Item Number], [tbl
Budget].[Line Item Name] FROM [tbl Budget] WHERE ((([tbl Budget].[IRB
Number])=Me![IRB Number])) ORDER BY [tbl Budget].[Line Item Name];

The problem is that I have to enter the parameter of IRB Number to get my
combo box populate properly(filter for IRB Number). I have tried to fully
refer to the subform control rather than Me! but that did not work either.
If I enter the parameter when prompted the combo box does populate properly.

Main form is frmIRB
first subform is subfrmPatient
second suborm is subfrmPatientEvent

Any suggestions?
Thanks!
 
M

Maurice

I think you do have to fully qualify the position of the combo to get the
result like:

Forms![frmIRB]![subfrmPatient].Form![subfrmPatientEvent].Form![Combobox]

where combobox is the name of your combo on the second subform.

hth
 
K

kathy b

Perfect!! I had tried that myself, but was off slightly on the sytax.
Thank you!

Maurice said:
I think you do have to fully qualify the position of the combo to get the
result like:

Forms![frmIRB]![subfrmPatient].Form![subfrmPatientEvent].Form![Combobox]

where combobox is the name of your combo on the second subform.

hth
--
Maurice Ausum


kathy b said:
I have a combo box in a subform of another subform. The linking field is
called IRB Number. The combo box row source is as follows:

SELECT [tbl Budget].[IRB Number], [tbl Budget].[Budget ID Item Number], [tbl
Budget].[Line Item Name] FROM [tbl Budget] WHERE ((([tbl Budget].[IRB
Number])=Me![IRB Number])) ORDER BY [tbl Budget].[Line Item Name];

The problem is that I have to enter the parameter of IRB Number to get my
combo box populate properly(filter for IRB Number). I have tried to fully
refer to the subform control rather than Me! but that did not work either.
If I enter the parameter when prompted the combo box does populate properly.

Main form is frmIRB
first subform is subfrmPatient
second suborm is subfrmPatientEvent

Any suggestions?
Thanks!
 
M

Maurice

You're welcome ;-)
--
Maurice Ausum


kathy b said:
Perfect!! I had tried that myself, but was off slightly on the sytax.
Thank you!

Maurice said:
I think you do have to fully qualify the position of the combo to get the
result like:

Forms![frmIRB]![subfrmPatient].Form![subfrmPatientEvent].Form![Combobox]

where combobox is the name of your combo on the second subform.

hth
--
Maurice Ausum


kathy b said:
I have a combo box in a subform of another subform. The linking field is
called IRB Number. The combo box row source is as follows:

SELECT [tbl Budget].[IRB Number], [tbl Budget].[Budget ID Item Number], [tbl
Budget].[Line Item Name] FROM [tbl Budget] WHERE ((([tbl Budget].[IRB
Number])=Me![IRB Number])) ORDER BY [tbl Budget].[Line Item Name];

The problem is that I have to enter the parameter of IRB Number to get my
combo box populate properly(filter for IRB Number). I have tried to fully
refer to the subform control rather than Me! but that did not work either.
If I enter the parameter when prompted the combo box does populate properly.

Main form is frmIRB
first subform is subfrmPatient
second suborm is subfrmPatientEvent

Any suggestions?
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top