G
Guest
I have a subform which is a datasheet. When a user clicks on a row in the
datasheet I want the record on the main form to update and display those
details.
If I have the following code executing on an on_click event I get an out of
stack error:-
Private Sub pRiA_Enter()
Forms![frmrecords]![txtFilterPlaceHolder] = pRiA
DoCmd.Requery (qryUpdaterecords)
End Sub
txtFilterPlaceHolder is a hidden field on the main form from which the query
gets the value for the criteria.
I have tried a couple of other ways but nothing seems to work. I tried
setting the focus to the txtFilterPlaceHolder field and then executing the
requery from there on the got_focus event but I get an error saying cannot
set focus.
Any help would be hugely appreciated!
Antony
datasheet I want the record on the main form to update and display those
details.
If I have the following code executing on an on_click event I get an out of
stack error:-
Private Sub pRiA_Enter()
Forms![frmrecords]![txtFilterPlaceHolder] = pRiA
DoCmd.Requery (qryUpdaterecords)
End Sub
txtFilterPlaceHolder is a hidden field on the main form from which the query
gets the value for the criteria.
I have tried a couple of other ways but nothing seems to work. I tried
setting the focus to the txtFilterPlaceHolder field and then executing the
requery from there on the got_focus event but I get an error saying cannot
set focus.
Any help would be hugely appreciated!
Antony