How to populate a control

T

Tony Williams

I have a form that has a number of unbound controls. I have a control on a
subform called txtInvNumber that is based on a table Invoices. I want the
value of txtInvNumber to be the same as one of the unbound controls on the
main form called Invoice Number. How do I do that?
TIA
Tony Williams
 
P

Pavel Romashkin

In the Current event of the control on the subform, put:

Me.txtInvNumber = Me.Parent.Controls("Invoice Number")

Pavel
 
T

Tony Williams

Thanks Pavel
Pavel Romashkin said:
In the Current event of the control on the subform, put:

Me.txtInvNumber = Me.Parent.Controls("Invoice Number")

Pavel
 

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

Top