I am using Crystal 8, and VB6. I have lots of places for users to input values on which to select records. I am passing my formulas to strings, and now need to put all these strings together for the recordSelectionFormula. I am currently in some sort of infinite loop. Does anybody have the correct syntax? Here is a snipit of code. My problem area is in the very last line.
StrSelectionFormula = "{KB_CLAIM_POLICY_AMT_VIEW.TRANS_DATE} >= #" & FromDate & "# and {KB_CLAIM_POLICY_AMT_VIEW.TRANS_DATE} <= #" & ToDate & "# And {CLAIM_STATUS_HISTORY.STATUS_START_DATE} < #" & ToDate & "# And {CLAIM_STATUS_HISTORY.STATUS_END_DATE} >= #" & ToDate & "# And {CLAIM_TYPE_HISTORY.TYPE_START_DATE} < #" & ToDate & "# And {CLAIM_TYPE_HISTORY.TYPE_END_DATE} >= #" & ToDate & "# And & StrPolicySelectFormula"
StrSelectionFormula = "{KB_CLAIM_POLICY_AMT_VIEW.TRANS_DATE} >= #" & FromDate & "# and {KB_CLAIM_POLICY_AMT_VIEW.TRANS_DATE} <= #" & ToDate & "# And {CLAIM_STATUS_HISTORY.STATUS_START_DATE} < #" & ToDate & "# And {CLAIM_STATUS_HISTORY.STATUS_END_DATE} >= #" & ToDate & "# And {CLAIM_TYPE_HISTORY.TYPE_START_DATE} < #" & ToDate & "# And {CLAIM_TYPE_HISTORY.TYPE_END_DATE} >= #" & ToDate & "# And & StrPolicySelectFormula"