Code for changing SubForm Header Names

M

Matt

I have a form that contains a CMD button, which when clicked will open
another form containing a subform displayed in datasheet view. I am looking
for code that will change some of the header names in the subform based on
the criteria entered in the first form. Should I use setvaue or is it easy to
say Form2!Header1.Name = NewValue?

Thanks,
Matt
 
D

Dave

It's probably easiest just to pass the name along as OpenArgs and then
assign it to the control you want in the new form's Open event.
 
Top