Hello,
I have a form named frmMain that contains five buttons that lead to subforms, one of which is named frmDeceased.
In frmDeceased, I needed to create a combo box that relied on selections from the combo box before it. With the help of someone on this forum named vbaINet, I was able to do this successfully in frmDeceased, but then today when I opened the database and opened frmMain, I realised that the query fails when frmDeceased is opened via frmMain. It works perfectly if I just open frmDeceased directly.
The first combo box is ROHE and the second is Iwi (which is dependent on the Rohe selected). The query for Iwi has this criteria: Forms!frmDeceased!cbo_ROHE
When I open frmDeceased through frmMain, I get the 'enter parameter value' message showing "Forms!frmDeceased!cbo_ROHE". I tried changing this query to: Forms!frmMain!frmDeceased!cbo_ROHE, but it didn't help. Could someone please tell me what I should write to correct this problem? Thanks.
I have a form named frmMain that contains five buttons that lead to subforms, one of which is named frmDeceased.
In frmDeceased, I needed to create a combo box that relied on selections from the combo box before it. With the help of someone on this forum named vbaINet, I was able to do this successfully in frmDeceased, but then today when I opened the database and opened frmMain, I realised that the query fails when frmDeceased is opened via frmMain. It works perfectly if I just open frmDeceased directly.
The first combo box is ROHE and the second is Iwi (which is dependent on the Rohe selected). The query for Iwi has this criteria: Forms!frmDeceased!cbo_ROHE
When I open frmDeceased through frmMain, I get the 'enter parameter value' message showing "Forms!frmDeceased!cbo_ROHE". I tried changing this query to: Forms!frmMain!frmDeceased!cbo_ROHE, but it didn't help. Could someone please tell me what I should write to correct this problem? Thanks.