I have a main form with a subform, the subform RecordSource is set in VB. When the main form opens the subform shows no data. When I right click on the subform and choose Remove Filter/Sort, the correct data appears based on the RecordSource query I set in the code.
The final few lines in Sub Form_Load() are:
Me.RecordSource = strSQL
Me.FilterOn = False
Me.Requery
Stepping through and watching the locals I can see the RecordSource being set correctly and the FilterOn is always False, the Filter Property is "". I've even tried Me.Refresh but the Subform won't show data until I right click and Remove Filter/Sort.
Anyone any ideas what I'm missing here ?
Many thanks.
The final few lines in Sub Form_Load() are:
Me.RecordSource = strSQL
Me.FilterOn = False
Me.Requery
Stepping through and watching the locals I can see the RecordSource being set correctly and the FilterOn is always False, the Filter Property is "". I've even tried Me.Refresh but the Subform won't show data until I right click and Remove Filter/Sort.
Anyone any ideas what I'm missing here ?
Many thanks.