ۥ-1@ -]        ) 3  =    4Q     Crystal Reports Technical Document Subject: Using PESetSelectionFormula with Object Vision Date: TIME \@ "MMMM d, yyyy"October 7, 1993 Versions: VB Situation: User has difficulty with assigning a record select statement. Solution: If its a string that you are passing in the variable, it should look like this: @ASSIGN(Job,@PEOpenPrintJob("reportname")) @ASSIGN(Recselect,"{file.field} = ' "&OV_Variable&" ' ") @PESetSelectionFormula(Job,Recselect) @PEOutputToWindow(Job,"Print check listing",1,20,630,450,0,0) @PEStartPrintJob(Job,1) @PEClosePrintJob(Job) If it's a number that you are passing in the variable, it should look like this: @ASSIGN(Job,@PEOpenPrintJob("reportname")) @ASSIGN(Recselect,"{file.field} = "&OV_Variable) @PESetSelectionFormula(Job,Recselect) @PEOutputToWindow(Job,"Print check listing",1,20,630,450,0,0) @PEStartPrintJob(Job,1) @PEClosePrintJob(Job) Remarks: Watch your quotation marks. {file name} !#,qy"FW[]f  !#oq|~8_"$P%'DFSUWY[]0*0*0* 0* h  h&!,TECHDOC:F 3#MO]f]Times New Roman Symbol&Arial "AvantGarde Bookman 1Courier5Courier New "Helvetica 2Modern1MS LineDrawNewCenturySchlbk PalatinoRomani  "h:څ+z%&PESetSelectionFormula in Object VisionTechnical Support Document1record select pesetselectionformula Object VisionMonteAllan D. McMordie