Mario R. Perez
New member
- Local time
- Today, 18:10
- Joined
- May 14, 2020
- Messages
- 21
Hi there, I'm obviously doing something wrong, but can't figure out what it is, and this should be pretty simple.
I have a button on a form(form1) that opens another form(form2) and not populates a textboxes in the second form with a the values from openargs.
form1
Private Sub Command31_Click()
DoCmd.OpenForm "form2", , , , , , "select ID,Fldsize from TBLSIZE"
end sub
form2 (default view: Continuous Forms, 2 unbound Textboxes : TextId,TextSize)
Private Sub Form_Open(Cancel As Integer)
If Not IsNull(Me.OpenArgs) Then
Me.RecordSource = Me.OpenArgs
Me.TextId = Me!ID 'not populate only first rec
Me.TextSize = Me!Fldsize 'not populate only first rec
End If
end sub
Thanks for advance
I have a button on a form(form1) that opens another form(form2) and not populates a textboxes in the second form with a the values from openargs.
form1
Private Sub Command31_Click()
DoCmd.OpenForm "form2", , , , , , "select ID,Fldsize from TBLSIZE"
end sub
form2 (default view: Continuous Forms, 2 unbound Textboxes : TextId,TextSize)
Private Sub Form_Open(Cancel As Integer)
If Not IsNull(Me.OpenArgs) Then
Me.RecordSource = Me.OpenArgs
Me.TextId = Me!ID 'not populate only first rec
Me.TextSize = Me!Fldsize 'not populate only first rec
End If
end sub
Thanks for advance