G
Gary
I have a simple database used here at work that performs
the following activate event:
Private Sub Form_Activate()
DoCmd.RunCommand acCmdDocRestore
End Sub
This form is called from a previous form that executes an
SQL query to retrieve records. If there is 1 record that
meets the query criteria, the form is called using the
following:
If rst.RecordCount = 1 Then
Dim stLinkCriteria As String
stLinkCriteria = "[ID]=" & rst![ID]
DoCmd.OpenForm "frmMaster", , , stLinkCriteria
Else
DoCmd.OpenForm "frmSelect", , , stLinkCriteria
End If
I am calling the Form frmMaster. The problem is no
records are ever loaded into frmMaster unless I return to
the calling form and re-execute the query *without*
closing out the frmMaster Form. Then, my record shows
up. I am out of ideas.
the following activate event:
Private Sub Form_Activate()
DoCmd.RunCommand acCmdDocRestore
End Sub
This form is called from a previous form that executes an
SQL query to retrieve records. If there is 1 record that
meets the query criteria, the form is called using the
following:
If rst.RecordCount = 1 Then
Dim stLinkCriteria As String
stLinkCriteria = "[ID]=" & rst![ID]
DoCmd.OpenForm "frmMaster", , , stLinkCriteria
Else
DoCmd.OpenForm "frmSelect", , , stLinkCriteria
End If
I am calling the Form frmMaster. The problem is no
records are ever loaded into frmMaster unless I return to
the calling form and re-execute the query *without*
closing out the frmMaster Form. Then, my record shows
up. I am out of ideas.