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

Passing Multiple Parameters

Status
Not open for further replies.

pmaxon

Programmer
Sep 25, 2003
68
US
I am using VB6, CR8.5 OCX. I have a form which uses a combo box to pass a parameter to a report. I now need to add another parameter from a text box on the same form. I am currently using:

.ParameterFields(0) = "sLName;" & Combo1.Text & ";TRUE;"

to pass the original parameter. How do I also pass the second parameter to the report? They need to be passed at the same time. The parameter field on the report is sYear and the text box on the form is txtYear. Unfortunately, it is not as simple as adding:

.ParameterFields(1) = "sYear;" & txtYear.Text & ";TRUE;"

TIA!
 
That's the correct syntax. Are you getting an error?

-dave
 
Well... no...
I was but now it seems to be working fine. :eek:) Hooray! Thanks anyway Dave and hope all is well with you.

Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top