CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    29

    Invalid use of Null

    When I want to recover a datum from a database, which contains a Null value, the program shows an error message: Invalid use of Null.

    For example:
    Dim rstTemp as Recordset
    sentence = "SELECT * FROM aaaa WHERE city='MZA'"
    ...
    txt_phone.Text = rstTemp!phone

    The data field "phone" has a null value. (no 0, no "")
    ¿What can I do? Thanks in advance!


  2. #2
    Join Date
    Apr 1999
    Posts
    29

    Re: Invalid use of Null

    I have the solution : the IsNull function.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured