Code for changing SubForm Header Names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top