G
Guest
Have been trying unsuccessfully to get a requery of a subform to work now
need guidance from some kindly soul.
Main Form has a 'Select Products' button that instigates a pop up form to
display all products (criteria can be used to narrow list). Before the Call
to the form is invoked I force a save to create a new IssueId(not an
autonumber) using Me.Dirty.
For each product where a quantity > 0 is recorded, a record is written to
the details table (on use of a 'Close' action button. On return from this pop
up form the data is not displayed in the subform. The subform is based on a
query using the details table.
After the DoCmd.OpenForm in the 'Select Products' button, I have the comand :-
Me![fsubIssueDetails].Requery
If I use the 'Select Products' button again the required details records
appear - confused!!!!!!!
I have tried forcing another Save but this does not bring the details up
either, have also tried this line without any success :-
Me.fsubIssueDetails.Form.RecordSource = "Select * From qryIssueDetails WHERE
IssueId = " & Me.IssueId
Any help gratefully received.
Cheers,
Steve
need guidance from some kindly soul.
Main Form has a 'Select Products' button that instigates a pop up form to
display all products (criteria can be used to narrow list). Before the Call
to the form is invoked I force a save to create a new IssueId(not an
autonumber) using Me.Dirty.
For each product where a quantity > 0 is recorded, a record is written to
the details table (on use of a 'Close' action button. On return from this pop
up form the data is not displayed in the subform. The subform is based on a
query using the details table.
After the DoCmd.OpenForm in the 'Select Products' button, I have the comand :-
Me![fsubIssueDetails].Requery
If I use the 'Select Products' button again the required details records
appear - confused!!!!!!!
I have tried forcing another Save but this does not bring the details up
either, have also tried this line without any success :-
Me.fsubIssueDetails.Form.RecordSource = "Select * From qryIssueDetails WHERE
IssueId = " & Me.IssueId
Any help gratefully received.
Cheers,
Steve