[AccessD] JIT SubForms

Bryan Carbonnell carbonnb at gmail.com
Tue Aug 28 11:27:45 CDT 2007


I'm finally back in the development mode, from management mode, and
have run into a problem with some JIT sub forms.

I have a SubForm Control that can hold 1 of 5 subforms. I set the
SourceObject, LinkChildFields and LinkMasterFields in code to change
the subform.

If I use one of the 3 that are similar (display, add and edit
version), everything works just fine, but when I try and switch to a
subform that is completely different, I get Parameter requests and
errors popping up.

It first asks for parameter that is one of the link fields (Child
IIRC)., When I cancel the parameter request dialog I get an error 2101
The Setting you entered isn't valid for this property. The code
actually DOES change it, but gives an error.

This is the actual code I use:

  Me.sfmSubForm.SourceObject = "sfmShiftReport"
  Me.sfmSubForm.LinkChildFields = "ShiftReportDate"
  Me.sfmSubForm.LinkMasterFields = "txtShiftReportDate"

I've tried setting all of these to an empty string first. No Joy, the
error still appears. I've tried various orders of setting things, and
"unsetting" them. Still get the error.

Does anyone have any insight to why this isn't working for me?

Thanks,

-- 
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"



More information about the AccessD mailing list