If frm.chkIsLector = -1 Or frm.chkIsEucharistic = -1 Or frm.chkIsServer = -1 Or frm.chkIsHospitality = -1 Or frm.chkIsMusic = -1 Or frm.chkIsReligious = -1 Then
stDocNafrm = "Ministry"
DoCmd.OpenReport stDocNafrm, acPreview
Reports!Ministry.Filter = strWhereMinistry
Reports!Ministry.FilterOn = True
End If
If frm.chkIsFaith = -1 Or frm.chkIsPrayer = -1 Or frm.chkIsService = -1 Or frm.chkIsSocial = -1 Or frm.chkIsWorship = -1 Then
stDocNafrm = "Interests"
DoCmd.OpenReport stDocNafrm, acPreview
Reports!Interests.Filter = strWhereInterest
Reports!Interests.FilterOn = True
End If
If frm.chkNeedConfirmation = -1 Or frm.chkNeedEucharist = -1 Or frm.chkNeedReconciliation = -1 Or frm.chkNotCatholic = -1 Then
stDocNafrm = "Sacrafrmnts"
DoCmd.OpenReport stDocNafrm, acPreview
Reports!Sacrafrmnts.Filter = strWhereSacrafrmnts
Reports!Sacrafrmnts.FilterOn = True
End If
If Not IsNull(frm.txtHofrmtown) Then
stDocNafrm = "Hofrmtown"
DoCmd.OpenReport stDocNafrm, acPreview
Reports!Hofrmtown.Filter = strwhere
Reports!Hofrmtown.FilterOn = True
End If
'if special boxes are checked or hofrmtown is filled in do not create the all report
If Not IsNull(frm.txtHofrmtown) Or frm.chkIsLector = -1 Or frm.chkIsEucharistic = -1 Or frm.chkIsServer = -1 Or frm.chkIsHospitality = -1 Or frm.chkIsMusic = -1 Or frm.chkIsReligious = -1 Or frm.chkIsFaith = -1 Or frm.chkIsPrayer = -1 Or frm.chkIsService = -1 Or frm.chkIsSocial = -1 Or frm.chkIsWorship = -1 Or frm.chkNeedConfirmation = -1 Or frm.chkNeedEucharist = -1 Or frm.chkNeedReconciliation = -1 Or frm.chkNotCatholic = -1 Then
'do nothing
Else
stDocNafrm = "All"
DoCmd.OpenReport stDocNafrm, acPreview
Reports!All.Filter = strwhere
Reports!All.FilterOn = True
End If
End If