G
Guest
This code is fine, but I need to add the results of my MsgBox.
If the person answers YES - I need to show only records with TR_EXPEDITED
that are True...
?? something like: IF ANSWER = YES THEN TR_EXPEDITED=TRUE??
Dim stDocName As String
Dim stLinkCriteria As String
Dim Answer As String
Answer = MsgBox("Expedited Case??", vbQuestion + vbYesNo, "Question")
If IsNull(Me.StartDate) Or IsNull(Me.EndDate) Then
MsgBox "You must enter a Start & Stop date."
End If
If Not (IsNull(Me.InqType)) Then
stLinkCriteria = "[TR_INQUIRYTYPE]=" & "'" & Me.InqType & "'"
If Not (IsNull(Me.DecCode)) Then
stLinkCriteria = "[TR_DECISION]=" & "'" & Me.DecCode & "'"
End If
stDocName = "r_GroupBasic"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
///////////
I'm so close to being done, please help...
If the person answers YES - I need to show only records with TR_EXPEDITED
that are True...
?? something like: IF ANSWER = YES THEN TR_EXPEDITED=TRUE??
Dim stDocName As String
Dim stLinkCriteria As String
Dim Answer As String
Answer = MsgBox("Expedited Case??", vbQuestion + vbYesNo, "Question")
If IsNull(Me.StartDate) Or IsNull(Me.EndDate) Then
MsgBox "You must enter a Start & Stop date."
End If
If Not (IsNull(Me.InqType)) Then
stLinkCriteria = "[TR_INQUIRYTYPE]=" & "'" & Me.InqType & "'"
If Not (IsNull(Me.DecCode)) Then
stLinkCriteria = "[TR_DECISION]=" & "'" & Me.DecCode & "'"
End If
stDocName = "r_GroupBasic"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
///////////
I'm so close to being done, please help...