Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21114

[RESOLVED] Saving Date as NULL

$
0
0
Hi,
I want to save the red highlighted date as null, using VB 6 and Access 2003 as back end, my code is as under, but not giving the desired result.
Code:

            mSQL = "Insert into tblChqMaster Values(" & mChqMasterId & ", #" & txtDate & "#, " & fgData.TextMatrix(sRow, 4) & ", #" & txtDate & "#, " & Val(PartyId) & ", #" & txtDate & "#, " & 0 & ", '" & "Own" & "', '" & "-" & "', " & Val(UserId) & ")"
            mSQL = Replace(mSQL, "##", "NULL")
db.Execute mSQL

Please help me

Viewing all articles
Browse latest Browse all 21114


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>