Hey there,
I have a combo box where row source is Msysobjects table for reports list.
the code for Msysobjects table is here and it gives fine results.
Code:
SELECT MsysObjects.Name, Mid([Name],5) AS QueryName
FROM MsysObjects
WHERE (((Left([Name],4))="rpp_"))
ORDER BY MsysObjects.Name;
This code is applied "afterupdate" event on this combo box and when we select the report from list it display the data but once we close the report and again try to select the other report but the report list disappeared from combo box and need to close the form and then reopen.
Code:
Private Sub testreport_AfterUpdate()
Me.testreport.RowSource = ""
DoCmd.OpenReport Me.testreport, acViewPreview
End Sub
What could be the mistake?
thanks