> >Forms!frmBrowseNegsSubform.RecordSource = MySQL
Two problems here:
1. A subform is not part of the Forms collection; it belongs to the main form's
collection. You need to reference the subform like this:
Forms!NameOfMainForm!frmBrowseNegsSubform.Form
2. A subform control does not have a recordsource property! The form in the
subform control does though. Try:
Forms!NameOfMainForm!frmBrowseNegsSubform.Form.Rec ordSource = MySQL
[color=blue][color=green]
> >Me!MySubformControl.Requery[/color][/color]
You can't requery a subform control either but again you can requery the form
the control holds:
Me!MySubformControl.Form.Requery
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com www.pcdatasheet.com
"MLH" <CRCI@NorthState.net> wrote in message
news:9356g093g7m490bl9558h9ujdd6nmj0r3r@4ax.com...[color=blue]
> Damn! The code below didn't work either. I could open the actual
> subform in design mode easily enough, make the changes, close
> the form, saving the changes on the way out. But neither the Requery
> Action nor the Requery Method would rearranget the records already
> displayed in the subform control. I even put a DoEvents statement
> prior to the Requery Action/Method. The only thing that works is
> closing the main form and reopening it. The subform control then
> displays the records in the newly sorted order. But there's just no
> way I'm gonna implement that as a strategy. I'm stuck here!
>
>
>[color=green]
> >DoCmd OpenForm "frmBrowseNegsSubform", A_DESIGN
> >MySQL = "blah blah blah"
> >Forms!frmBrowseNegsSubform.RecordSource = MySQL
> >Hmmm??? What command line would save the form & the changes???
> >Me!MySubformControl.Requery[/color]
>[/color]