trying to grab value from combo box main to enter into new record

B

babs

Trying to grab for NEW record when man name selected from combo box cboman
want it to input from 1st column-meaning column 0 and put it in text box
named txtName on the subform called datbarbTimeCardMDJEFFSubform2
- getting an error not sure why???


Private Sub cboman_AfterUpdate()
Me.datbarbTimeCardMDJEFFSubform2.txtName = Me.cboman.Column(0)
End Sub

error - method or Data not found

thanks
barb
 
M

Mark A. Sam

Barb,

Try this:

datbarbTimeCardMDJEFFSubform2.Form!txtName = Me.cboman

God Bless,

Mark A. Sam
 

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