maverickmonster
Programmer
When inserting null's or blank into a table via VB6 front end into access using ADODB the vb code bombs out and says
I have this problem on inserting blank or null into dates, numbers and the above mentioned strings fields in databases.
Is this a VB6 issue or a access issue ?
The code below is the inserting into the table.
Code:
field'ad.name cannot be a zero length string
I have this problem on inserting blank or null into dates, numbers and the above mentioned strings fields in databases.
Is this a VB6 issue or a access issue ?
The code below is the inserting into the table.
Code:
Which = "INSERT INTO ad VALUES ( '" & maxnum & "','" & ad & "','" & txtBPdmember_key & "','" & txtAD(0) & "','" & txtAD(1) & "','" & txtAD(2) & "')"
Set RSad = New ADODB.Recordset
RSad.Open Which, cn, adOpenKeyset, adLockPessimistic