bmhuettinger
Registered User.
- Local time
- Yesterday, 21:37
- Joined
- Jul 28, 2017
- Messages
- 59
Good afternoon all!
The following code works exactly as I need it to - by double clicking a master form, I can open and populate fields on a child form. The problem is that the code is telling the form to open in a new window, and I'd like to just open in the subform window (I don't want to see the subform until I open it). A visible=true event doesn't help me.
Private Sub TagNumber_DblClick(Cancel As Integer)
DoCmd.OpenForm "frm_IPOAllocationWorksheet", acNormal
DoCmd.GoToRecord , , acNewRec
Forms!frm_IPOAllocationWorksheet.TagNumber = Me.TagNumber
Forms!frm_IPOAllocationWorksheet.Net = Me.Net
Forms!frm_IPOAllocationWorksheet.IPONumber.SetFocus
End Sub
The following code works exactly as I need it to - by double clicking a master form, I can open and populate fields on a child form. The problem is that the code is telling the form to open in a new window, and I'd like to just open in the subform window (I don't want to see the subform until I open it). A visible=true event doesn't help me.
Private Sub TagNumber_DblClick(Cancel As Integer)
DoCmd.OpenForm "frm_IPOAllocationWorksheet", acNormal
DoCmd.GoToRecord , , acNewRec
Forms!frm_IPOAllocationWorksheet.TagNumber = Me.TagNumber
Forms!frm_IPOAllocationWorksheet.Net = Me.Net
Forms!frm_IPOAllocationWorksheet.IPONumber.SetFocus
End Sub