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

How to pass a NULL Value to report from VB?

Status
Not open for further replies.

PavanKumarU

Programmer
Jan 31, 2003
56
US
Hi,
Hope someone can help me with this.
I am trying to pass a Null value for a Date parameter of a report, form VB.
When run in Crystal environment, i am able to set it to Null and my stored procedure accepts null for this parameter. But form VB, when i try the following code I am getting a "Type Mismatch" error.

cReport.ParameterFields(11).AddCurrentValue CDate(Begin_Settle_Date)

I even tried
creport.Parameterfields(11)="CrwNull".
It also raises the same error.
Could someone thorw some light on this?
Any help is much appreciated.
Thanks,
Pavan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top