VBA

R

Ronald

Hello,

I am trying to doing something that may not be possible.

I presently have a form for ex: "MAINFORM" that has
several unbound fields (for ex: 'fldHeader' that have
default values in the Control Source (="CompanyName").
Thus the field will show up containing 'CompanyName' .

I want to create another form that if I type a
new "Company Name" I want to be able to take the new value
from this form and insert it to the CONTROL SOURCE of the
field 'fldHeader' in 'MAINFORM'

Is this possible?

Any help you be great.

I hope people can understand what I mean. if not, I will
try and reword it.

Cheers

Ronald
 
K

Ken Snell

Why does it have to be put in the control source? As the control is unbound,
delete the control source expression and just set the value of the control
to the value you want. Much easier to do. You can use the DefaultValue
property to set the initial values that you currently do in the control
source.

You can set the value of the control on the first form in the OnClose event
of the second form.
 

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

Similar Threads


Top