MackMan
Registered User.
- Local time
- Today, 07:15
- Joined
- Nov 25, 2014
- Messages
- 174
Hi all.
I know this has been covered many many times before, but... I can't seem to find the answer I'm looking for in my particular situation.
Form... and Popup form.
So I want to pass some data from a Main Form to a continuous popup form, where I am ADDING data.
the openargs from the main form are...
the Onload event code for the popup form is...
but something odd is happening which I will try to explain...
All data passes, but is only good for the first line (TopLineID and TransDate)... the third value is just a total in the form footer.
How can I make the TopLineID the same, as well as transdate for each new line I add?
As always, super thanks...
I know this has been covered many many times before, but... I can't seem to find the answer I'm looking for in my particular situation.
Form... and Popup form.
So I want to pass some data from a Main Form to a continuous popup form, where I am ADDING data.
the openargs from the main form are...
Code:
DoCmd.OpenForm "frmREGISTERSplitsPopup", acNormal, , , acFormAdd, , Me.TopLineID & "|" & Me.TransDate & "|" & Me.txtAmount
Code:
Private Sub Form_Load()
Dim args As Variant
DoCmd.MoveSize 8000, 5000, 12500, 9000
If Not IsNull(Me.OpenArgs) Then ' form is being opened from a form passing it's data
args = Split(Me.OpenArgs, "|") 'using the "|" as the delimiter
Me.TopLineID = args(0) ' 1st Value
Me.TransDate = args(1) ' 2nd value
Me.txtregistertotal = args(2) ' 3rd value
End If
End Sub
All data passes, but is only good for the first line (TopLineID and TransDate)... the third value is just a total in the form footer.
How can I make the TopLineID the same, as well as transdate for each new line I add?
As always, super thanks...