
November 21st, 2006, 10:38 AM
|
|
Contributing User
|
|
Join Date: Apr 2005
Posts: 303
  
Time spent in forums: 1 Day 19 h 53 m 20 sec
Reputation Power: 8
|
|
|
Get value from subform to add to main form
I need to get a value from my subform and add it to my main form when it loads. I have ran the below code and it is getting the value from the subform however it is not adding it to the main.
It appears that the form loads too quickly, as if i have a break in the code it shows that it is getting the value just not putting it into the main form. If i then re open the form the field has been populated.
Should it be in another section or is there another way to pull the value onto teh main form, any ideas?!!! Thanks
Code:
Private Sub Form_Current()
DoEvents
Me.txt_testmins = Me.sbf_charge_viewESummary.Form!txt_totalmins
End Sub
|