SyntaxSocialist
Registered User.
- Local time
- Today, 03:48
- Joined
- Apr 18, 2013
- Messages
- 109
The RecordSource is a query and that query has criteria that refers to the hidden field.
Maybe it's the fact that I didn't sleep last night, but I'm still not able to get this working properly.
I've commented out the public sub that was being called from the general module, as well as the code in the subform's Current event that did the calling.
I set the main form's Record Source to
Code:
SELECT * FROM tblMain WHERE (([tblMain]![RecordID]=[Forms]![frmMain]![txtSubFrmRcrdID]));
My subform's Current event reads
Code:
Me.Parent.txtSubFrmRcrdID = Me.RecordID
Me.Parent.Requery
And I've moved the main form Open events back to the Load event.
What I'm ending up with, though, is the exact same problem: Load still doesn't fire. The culprit is Me.Parent.Requery in the subform Current Event. The requery calls the main form Current event, and the main form Current event calls 2 additional subs: One counts the total records displayed in a RecordsetClone of the main form and displays a count (e.g.: Record 3/786) near the bound controls. The other just enables/disables a set of buttons according to the position of the current record.
So here we are again