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 NULL value from VB 6 to Stored procedure

Status
Not open for further replies.

be1s

Programmer
Dec 8, 2003
59
0
0
US
I am passing parameters into a stored proc from a vb6 app to produce a crystal report. Two of the parameters can be null. Running the stored proc from QA runs fine. In the vb6 app the null parameter appear as empty strings and when I run the app it doesn't produce the desired output. How can I get this to work?
 
Check for null AND blank in the SP, this solves the problem across all tools going forward.

As for passing a null from VB to a stored procedure, you might be better served posting in a VB forum and specifically posting meaningful information, such as the database type and how you are passing the values when null.

-k

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top