I am making hardware & software inventory database. All my forms are subforms on different tabs of one main form.
What I want to do is use an event procedure to switch to another tab (and thus form) and open up a record corresponding to the currently open record in the current form.
I am currently using this code that opens up the form that I want to switch in a new window (instead of switching to another tab):
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.OpenForm "Frm_Software", , , "[SoftwareID]=" & Me.SoftwareID
End Sub
Can anyone tell me the statement I need to use to open another tab instead of another form?
Thx!
What I want to do is use an event procedure to switch to another tab (and thus form) and open up a record corresponding to the currently open record in the current form.
I am currently using this code that opens up the form that I want to switch in a new window (instead of switching to another tab):
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.OpenForm "Frm_Software", , , "[SoftwareID]=" & Me.SoftwareID
End Sub
Can anyone tell me the statement I need to use to open another tab instead of another form?
Thx!