D
Dave
Even after researching this, I can't find anything that gives me a
clue as to why this doesn't work:
DoCmd.OpenForm "frmNP"
With Forms("frmNP")
.Tag = "edit"
.RecordSource = "tempNPhdr"
.Filter = "[NPno]='" & Me!lstNPno & "'"
End With
The opened form's recordsource and filter are correctly set, but I
can't seem to affect the tag property. A debug statement before the
End With shows the value has been assigned to Tag, but if I flip the
opened form to design view, the tag has no value. I checked this
because code based on the tag behind the opened form did not run. Can
the tag value only be set on the opening form's load event or
something?
Thanks.
clue as to why this doesn't work:
DoCmd.OpenForm "frmNP"
With Forms("frmNP")
.Tag = "edit"
.RecordSource = "tempNPhdr"
.Filter = "[NPno]='" & Me!lstNPno & "'"
End With
The opened form's recordsource and filter are correctly set, but I
can't seem to affect the tag property. A debug statement before the
End With shows the value has been assigned to Tag, but if I flip the
opened form to design view, the tag has no value. I checked this
because code based on the tag behind the opened form did not run. Can
the tag value only be set on the opening form's load event or
something?
Thanks.