BobJacksonNCI
Technical User
TIA!
Access 2000 with SQL 7.
Simulating plain Access Form/Subform with one-to-many tables.
Form + Subform using Select statement in Record Source to populate Form. Subform has Link Master and Link Child properties loaded.
This works fine when the form is opened - recordsets are all records at this time. Added buttons to trigger Stored Procedures to populate depending on status. When the button is selected, the form appears to work correctly, however the subform no longer shows any records.
I'm using this technique for another form that doesn't have a subform.
Button code follows.
Private Sub cmdShowAll_Click()
Me.RecordSource = "MgrTB_spr_Time_Off_Show_All"
Forms!frm_Time_Off_Status!frm_Time_Off_Status_Subform.Requery
Me.Requery
End Sub
Private Sub cmdShowNew_Click()
Me.RecordSource = "MgrTB_spr_Time_Off_Show_New"
Forms!frm_Time_Off_Status!frm_Time_Off_Status_Subform.Requery
Me.Requery
End Sub
Anyone know why the subform is empty when buttons are pushed? (Either button)
Please view Thread181-473997 for helpful hints regarding this site.
Access 2000 with SQL 7.
Simulating plain Access Form/Subform with one-to-many tables.
Form + Subform using Select statement in Record Source to populate Form. Subform has Link Master and Link Child properties loaded.
This works fine when the form is opened - recordsets are all records at this time. Added buttons to trigger Stored Procedures to populate depending on status. When the button is selected, the form appears to work correctly, however the subform no longer shows any records.
I'm using this technique for another form that doesn't have a subform.
Button code follows.
Private Sub cmdShowAll_Click()
Me.RecordSource = "MgrTB_spr_Time_Off_Show_All"
Forms!frm_Time_Off_Status!frm_Time_Off_Status_Subform.Requery
Me.Requery
End Sub
Private Sub cmdShowNew_Click()
Me.RecordSource = "MgrTB_spr_Time_Off_Show_New"
Forms!frm_Time_Off_Status!frm_Time_Off_Status_Subform.Requery
Me.Requery
End Sub
Anyone know why the subform is empty when buttons are pushed? (Either button)
Please view Thread181-473997 for helpful hints regarding this site.