G
Gary
I have a form and subform. The subform is based on a
parameter query. I add records to the underlying table
that the parameter query is based on and I want to show
the new records in my subform. I am using the requery
method of the subform but I do not see the new records,
in the subform, that were added until I move to the next
record and back to the record that was changed. Need to
know how to get the subform to requery without moving off
the record. Here is my code. Thanks.
Private Sub cmdAddCategory_Click()
Dim varBookmark As Variant
varBookmark = Forms![frmCustomerEdit].Bookmark
DoCmd.OpenForm "frmSelectCategory"
Forms![frmCustomerEdit]![qryCustomerCategoryData
subform3].Requery
Forms![frmCustomerEdit].Bookmark = varBookmark
End Sub
parameter query. I add records to the underlying table
that the parameter query is based on and I want to show
the new records in my subform. I am using the requery
method of the subform but I do not see the new records,
in the subform, that were added until I move to the next
record and back to the record that was changed. Need to
know how to get the subform to requery without moving off
the record. Here is my code. Thanks.
Private Sub cmdAddCategory_Click()
Dim varBookmark As Variant
varBookmark = Forms![frmCustomerEdit].Bookmark
DoCmd.OpenForm "frmSelectCategory"
Forms![frmCustomerEdit]![qryCustomerCategoryData
subform3].Requery
Forms![frmCustomerEdit].Bookmark = varBookmark
End Sub