All of my forms are subforms on different tabs of my main form.
What I want to do is switch to another tab and open a corresponding record (they are related through a 1:n relationship where the 1-side is the tab I want to switch to).
This is what I tried but it doesn't work:
Private Sub SoftwareIDfk_DblClick(Cancel As Integer)
Dim buffer As String
Dim rst As Recordset
buffer = Form_sfrmSoftware.SoftwareIDfk.Value
Form_frmMain.frmSoftware.SetFocus
Me.SoftwareID.SetFocus
DoCmd.FindRecord FindWhat:=buffer
Form_frmSoftware.Refresh
End Sub
Can anyone tell me what I did wrong? It works as far as getting to the SoftwareID field, but then I need to change to the record I am looking for
Thanks
What I want to do is switch to another tab and open a corresponding record (they are related through a 1:n relationship where the 1-side is the tab I want to switch to).
This is what I tried but it doesn't work:
Private Sub SoftwareIDfk_DblClick(Cancel As Integer)
Dim buffer As String
Dim rst As Recordset
buffer = Form_sfrmSoftware.SoftwareIDfk.Value
Form_frmMain.frmSoftware.SetFocus
Me.SoftwareID.SetFocus
DoCmd.FindRecord FindWhat:=buffer
Form_frmSoftware.Refresh
End Sub
Can anyone tell me what I did wrong? It works as far as getting to the SoftwareID field, but then I need to change to the record I am looking for
Thanks