Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

after updating a field in the main form, need to populate a field

Status
Not open for further replies.

csunsun

Technical User
Apr 29, 2003
41
US
after updating "Service Provider" in my main form, i need to update "Service Provider" in subform 1 and also update "Service Provider" in subform 2.

i thought this code would work:

Private Sub Service_Provider_AfterUpdate()

Forms![Data Entry Form]![Service Provider] = Forms![Work Orders subform]![Service Provider]

End Sub

thanks for any help!!
 
I am assuming that [Data Entry Form] is the main form, if that is the case, it should be like this:

Forms![Work Orders subform]!Form.[Service Provider] = me.[Service Provider]

You had it turned around.
 
The code above gave me an error.

I tried this code as well and also got an error.

Forms![Data Entry Form]![Work Orders subform]!Form.[Service Provider] = me.[Service Provider]

any thoughts??

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top