J
jhanby1
So I am having problems. I have set up a particular subform
(fsubCaseDetails) to change its source object when the user clicks the
cmdBackToSearch command button:
Private Sub cmdBackToSearch_Click()
'Return to the Case Search form based on user response.
Dim strResponse As String
strResponse = Msgbox("Are you sure you want to close the Case
Details and return to the Case Search?", vbOKCancel, "MAPS")
If strResponse = vbOK Then
Forms!frmMainPage2.Refresh
Forms!frmMainPage2!fsubCaseDetails.SourceObject =
fsubCaseSearch
Else
Cancel = True
End If
End Sub
When I click the Ok button in the message box, the subform goes blank.
So it seems like it is changing the subform's source object, but the
Case Search subform is not properly displayed. I'm not sure if its a
refresh problem or what...any ideas?????
(fsubCaseDetails) to change its source object when the user clicks the
cmdBackToSearch command button:
Private Sub cmdBackToSearch_Click()
'Return to the Case Search form based on user response.
Dim strResponse As String
strResponse = Msgbox("Are you sure you want to close the Case
Details and return to the Case Search?", vbOKCancel, "MAPS")
If strResponse = vbOK Then
Forms!frmMainPage2.Refresh
Forms!frmMainPage2!fsubCaseDetails.SourceObject =
fsubCaseSearch
Else
Cancel = True
End If
End Sub
When I click the Ok button in the message box, the subform goes blank.
So it seems like it is changing the subform's source object, but the
Case Search subform is not properly displayed. I'm not sure if its a
refresh problem or what...any ideas?????