Advertisement
Advertisement
| 05.15.2008 at 06:49AM PDT, ID: 23405067 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: |
'Declare variables
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim varItem As Variant
Dim strFinalReport As String
Dim strHandbook As String
Dim strOBE As String
Dim strPAR As String
Dim strRequiresClarification As String
Dim strSQL As String
'Get the PAR database and stored query
Set db = CurrentDb()
Set qdf = db.QueryDefs("qryReport")
If Me!chkFinalReport.Value = True Then
strFinalReport = " tblCTM.BinFinalReport = True"
Else
strFinalReport = " tblCTM.BinFinalReport = False"
End If
If Me!chkHandbook.Value = True Then
strHandbook = " tblCTM.BinHandbook = True"
Else
strHandbook = " tblCTM.BinHandbook = False"
End If
If Me!chkOBE.Value = True Then
strOBE = " tblCTM.BinOBE = True"
Else
strOBE = " tblCTM.BinOBE = False"
End If
If Me!chkPAR.Value = True Then
strPAR = " tblCTM.BinPAR = True"
Else
strPAR = " tblCTM.BinPAR = False"
End If
If Me!chkRequiresClarification.Value = True Then
strRequiresClarification = " tblCTM.BinRequiresClarification = True"
Else
strRequiresClarification = " tblCTM.BinRequiresClarification = False"
End If
If Me.fraAndOR.Value = "1" Then
'Create WHERE (for strSQL below) with 'AND' for all checked checkboxes
Else
'Create WHERE (for strSQL below) with 'OR' for all checked checkboxes
End If
strSQL = "SELECT tblCTM.TrackNoIDpk, tblCTM.BinFinalReport, tblCTM.BinHandbook, tblCTM.BinOBE, tblCTM.BinPAR, tblCTM.BinRequiresClarification FROM tblCTM " & _
"WHERE " & strFinalReport & " AND " & strHandbook & " AND " & strOBE & " AND " & strPAR & " AND " & strRequiresClarification & " " & _
"ORDER BY tblCTM.TrackNoIDpk;"
'Apply the new SQL statement to specified query
qdf.SQL = strSQL
'Open report
DoCmd.OpenReport "rptReviewPanelComments", acViewPreview
|
| null |