R
Raven
Can someone explain why I had to call OpenForm twice to get the form
to include the filtered record data. When the OpenForm is only called
once the form opens properly but there is no record attached to it. If
I call the openForm the second time, the data is display. I have
include the code:
Dim stDocName As String
Dim stLinkCriteria As String
Dim strTest As String
stDocName = "frmCaseSummary"
CaseNumber.SetFocus
strTest = CaseNumber.Text
Me.Visible = False
stLinkCriteria = "[CaseNumber]=" & "'" & strTest & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks
to include the filtered record data. When the OpenForm is only called
once the form opens properly but there is no record attached to it. If
I call the openForm the second time, the data is display. I have
include the code:
Dim stDocName As String
Dim stLinkCriteria As String
Dim strTest As String
stDocName = "frmCaseSummary"
CaseNumber.SetFocus
strTest = CaseNumber.Text
Me.Visible = False
stLinkCriteria = "[CaseNumber]=" & "'" & strTest & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks