Button On A Sub Form (1 Viewer)

Derrick T. Davidson

Registered User.
Local time
Tomorrow, 02:08
Joined
Jan 31, 2016
Messages
15
Hi All,
I am new here and not an expert in code.
My Question, I have a sub form containing a sub form;

I have a sub form [frmSubTransactionBalance] which I have placed a button [btnStatDate]

When I click the button I want:
The txt box on [frmSubTransactionBalance] [trStatDate] to refer to the sub form [frmSubStatementLastDate] and the txt box [MaxOfStatDate] and insert the date in [MaxOfStatDate] on [frmSubStatementLastDate] into [trStatDate] on [frmSubTransactionBalance]

My first post I hope it is clear???
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:08
Joined
May 7, 2009
Messages
19,246
on you button click event:

private sub button_click()
Me![trStatDate] = Me![frmSubStatementLastDate].Form![MaxOfStatDate]
end sub
 

Users who are viewing this thread

Top Bottom