this is not a question, just a heads up. I got a 'null not allowed' error message when trying to read a field from an Access db. This is how I got around it. The "On Error is trying to stop the program from bombing when it encounters the null. The receiving field has to be Variant because I get the error message if it is String:
Dim x As String Dim y As Variant ... On Error GoTo A x = " " y = rs("MTL") If y <> Null Then x = CStr(y) End If A: On Error Resume Next
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.