T
Tcs
I have a form with a subform. The form has two combo boxes, and the subform is
a continuous form to display the records that the two combo boxes select.
I seem to have the combo boxes working except for:
Combo box 2 only correctly shows what it should after opening the form. If I go
back to combo box 1 again, then back to combo box 2, it still shows what it had
from the first time I went to it.
Combo box 1 uses a query:
SELECT DISTINCT
[tblSubModules].[MetaSchema],
[tblApplications].[Application]
FROM
tblSubModules
INNER JOIN
tblApplications
ON
([tblSubModules].[CatalogVers]=[tblApplications].[CatalogVers]) AND
([tblSubModules].[MetaSchema]=[tblApplications].[MetaSchema])
ORDER BY
[tblSubModules].[MetaSchema], [tblApplications].[Application];
As does combo box 2:
SELECT DISTINCT
tblSubModules.CatalogVers,
tblSubModules.MetaSchema
FROM
tblSubModules
WHERE
(((tblSubModules.MetaSchema)=[Forms]![frmSubModules].[MetaSchema]))
ORDER BY
tblSubModules.CatalogVers, tblSubModules.MetaSchema;
And the requery?
No compiler errors, but nothing happens either. Once it appeared that the
subform flashed, ever so slightly, after I made my combo box 2 choice. But
other than that, nothing seems to be happening. All I see displayed in the
fields is "#Name?" as was dislayed when the form opened. Here's my event
procedure code for combo box 2:
Private Sub cbxCatalogVers_AfterUpdate()
On Error GoTo Err_cbxCatalogVers_AfterUpdate
Forms!frmSubModules!subSubModules.Form![CatalogVers].Requery
Exit_cbxCatalogVers_AfterUpdate:
Exit Sub
Err_cbxCatalogVers_AfterUpdate:
MsgBox Err.Description
Resume Exit_cbxCatalogVers_AfterUpdate
End Sub
If you could help shed some light on why I can't my subform to display the
reocrds I want, and what I have to do to make that happen, I surely ould
appreciate it. And perhaps you might even know why combo box 2 only works once
after opening the form? Any and all help is appreciated.
Thanks in advance,
Tom
a continuous form to display the records that the two combo boxes select.
I seem to have the combo boxes working except for:
Combo box 2 only correctly shows what it should after opening the form. If I go
back to combo box 1 again, then back to combo box 2, it still shows what it had
from the first time I went to it.
Combo box 1 uses a query:
SELECT DISTINCT
[tblSubModules].[MetaSchema],
[tblApplications].[Application]
FROM
tblSubModules
INNER JOIN
tblApplications
ON
([tblSubModules].[CatalogVers]=[tblApplications].[CatalogVers]) AND
([tblSubModules].[MetaSchema]=[tblApplications].[MetaSchema])
ORDER BY
[tblSubModules].[MetaSchema], [tblApplications].[Application];
As does combo box 2:
SELECT DISTINCT
tblSubModules.CatalogVers,
tblSubModules.MetaSchema
FROM
tblSubModules
WHERE
(((tblSubModules.MetaSchema)=[Forms]![frmSubModules].[MetaSchema]))
ORDER BY
tblSubModules.CatalogVers, tblSubModules.MetaSchema;
And the requery?
No compiler errors, but nothing happens either. Once it appeared that the
subform flashed, ever so slightly, after I made my combo box 2 choice. But
other than that, nothing seems to be happening. All I see displayed in the
fields is "#Name?" as was dislayed when the form opened. Here's my event
procedure code for combo box 2:
Private Sub cbxCatalogVers_AfterUpdate()
On Error GoTo Err_cbxCatalogVers_AfterUpdate
Forms!frmSubModules!subSubModules.Form![CatalogVers].Requery
Exit_cbxCatalogVers_AfterUpdate:
Exit Sub
Err_cbxCatalogVers_AfterUpdate:
MsgBox Err.Description
Resume Exit_cbxCatalogVers_AfterUpdate
End Sub
If you could help shed some light on why I can't my subform to display the
reocrds I want, and what I have to do to make that happen, I surely ould
appreciate it. And perhaps you might even know why combo box 2 only works once
after opening the form? Any and all help is appreciated.
Thanks in advance,
Tom