Populate subform field with 2 digits of main form field

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

Guest

I would like to populate a field (txtDC) on a subform with the first 2 digits
of a field (cboStore) on the main form.

Thanks in advance!
 
On the Before Update event of the SubForm you can write the code

Me.txtDC= Left(Me.Parent.cboStore,2)
 

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