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!

Syntax to pass parameter to crystal 8.5

Status
Not open for further replies.

simma

Programmer
Sep 11, 2001
398
US
Hello
Can anyone please give me the syntax to pass the parameter from vb to crystal reports 8.
Thanks
 
Code:
 For i = 1 To 2
    crEsCuentaA.ParameterFields(i).ClearCurrentValueAndRange
 Next i

    For i = 1 To crEsCuentaA.Database.Tables.Count
           crEsCuentaA.Database.Tables(i).SetLogOnInfo "Server", "Table", "ClientUser", "USER"
           crEsCuentaA.Database.Tables(i).SetLogOnInfo "Server", "Table", "ClientUser", "USER"
    Next i
    
          crEsCuentaA.DiscardSavedData
    
    For c = 1 To 2
          crEsCuentaA.ParameterFields(c).ClearCurrentValueAndRange
    Next c
          
      crEsCuentaA.ParameterFields(1).AddCurrentValue dtpFecha.Value
      crEsCuentaA.ParameterFields(2).AddCurrentValue dtCliente.BoundText
      
      Form1.ccr.ReportSource = crEsCuentaA
      Form1.ccr.ViewReport
      Form1.Show
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top