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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Tables and create a running total

Status
Not open for further replies.

mommom

Technical User
Nov 14, 2003
208
US
I am creating a travel form which needs to be linked to another travel form. Need to be able to have the ending balance pull over to the beginning balance on a new form. Any help will be appreciated.
 
mommom

what you need to do is refernce the other form here some sample code

Private Sub Form_Open(Cancel As Integer)
Dim Frm As OLDFORM
Set Frm = OLDFORM
Me.EndingBalance = frm.EndingBalance

End Sub

OLDFORM is the form you are coming from
Me.EndingBalance is the the textbox name on the new form
Me.EndingBalance is the the textbox name on the old form

Hope this help if not let me know

Shrek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top