Solved

About Null

Posted on 2000-03-27
2
129 Views
Last Modified: 2010-05-02
I have a problem with Null in VB6

If objRec.Fields(2) = Null then
    ....
    ....
    Msgbox "Success"
End If

but the message box never appears
when I debug the code, objRec.Fields(2) valued is Null.
I think it should be true
what's wrong with this ?
anyone can help ?

  Dewi
0
Comment
Question by:Dewi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
caraf_g earned 50 total points
ID: 2660263
Use IsNull

If IsNull(objRec.Fields(2)) Then...
0
 

Author Comment

by:Dewi
ID: 2660305
Hi caraf_g,

Thank's for your help
It's very easy, How fooled I am :)

one more question,
do you know how to create table with auto increamental field (using MSSQL) ?
http://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=10318041 

  Dewi
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question