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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing parameter fields, don´t work?

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0

i get the error with parameter fields:
the value/range you are adding has already existed

i am using:
vb6
access 97

the VGRamo = 1
the VGPoliza = "010.6579"
the VGSecren = 1

i use this in command bottom:

Set report = crxApplication.OpenReport
("D:\VB-dir\jimfor\Resumen de Seguros.rpt")
report.ParameterFields(1).AddCurrentValue
(VGRamo)
report.ParameterFields(2).AddCurrentValue
(VGPoliza)
report.ParameterFields(3).AddCurrentValue
(VGSecRen)

CRViewer1.ReportSource = report
CRViewer1.ViewReport

what is wrong 8/2/01 11:37:50 PM



 
If you're passing a single value to each parameter, try using the SetCurrentValue method instead of AddCurrentValue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top