Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Parameter from VB to CR8 - Urgent, please

Status
Not open for further replies.

jpfo

Programmer
Feb 11, 2002
6
0
0
PT
Hi guys,
I'm using VB6, MSACCESS and CR8.
I want to pass a 2 parameters values (strings) to my report without any prompting. I've already read the support page issue from Seagate and dont work... dont know what i'm missing... i'm doing this:
Code:
cr1.Connect = conn
cr1.ReportFileName = rconn & "\Recibo.rpt"
cr1.DiscardSavedData = True
cr1.SelectionFormula = "{Facturas_Activas.IDFactura}=" & CInt(sFactura)
cr1.ParameterFields(0) = CStr("Nome1;" & CStr(sClientes(0)) & ";true")
cr1.ParameterFields(1) = CStr("NIF1;" & CStr(sNIFs(0)) & ";true")
cr1.WindowShowPrintBtn = True
cr1.WindowShowPrintSetupBtn = True
cr1.WindowShowRefreshBtn = True
cr1.Destination = crptToWindow
cr1.WindowState = crptMaximized
cr1.Action = 0
My parameters on the rpt report are "Nome1" and "NIF1" (CAPS checked), they both strings... and i still got the parameters prompted and a empty box (if i set it FALSE on the SETCurrentValue arg i see them there)...
My report is saved with the Discard Saved Data option enable, so i dont understand...
Please... someone... a clue.
Tks in advance.
JP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top