I have a form that incorporates a subform space. The subform space is occupied by different subforms depending on the data that is to be displayed. The subform space is named SubFormSpace and the different subforms are connected to the SubFormSpace by setting the SourceObject property thusly:
Me!SubFormSpace.SourceObject = "Subform1"
This part works fine.
The data to be displayed on the selected Subform is delivered by certain queries that are referenced by setting the record source of the SubFormSpace object, thusly:
Me!SubFormSpace.Form.RecordSource = Me!PickQuery where PickQuery is the name of a stored query shown in the PickQuery combo box.
This code works fine in Access97, but totally crashes in Access 2002. It seems the processor can't find the SubFormSpace to assign a RecordSource to it even though it finds it just fine with ?Me!SubFormSpace.Form.Name
I suppose it's just a syntax thing, but I'm not having any luck trying to find something acceptable to A2002.
Any ideas?
AvGuy
Me!SubFormSpace.SourceObject = "Subform1"
This part works fine.
The data to be displayed on the selected Subform is delivered by certain queries that are referenced by setting the record source of the SubFormSpace object, thusly:
Me!SubFormSpace.Form.RecordSource = Me!PickQuery where PickQuery is the name of a stored query shown in the PickQuery combo box.
This code works fine in Access97, but totally crashes in Access 2002. It seems the processor can't find the SubFormSpace to assign a RecordSource to it even though it finds it just fine with ?Me!SubFormSpace.Form.Name
I suppose it's just a syntax thing, but I'm not having any luck trying to find something acceptable to A2002.
Any ideas?
AvGuy