Solved

About Null

Posted on 2000-03-27
2
130 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month5 days, 11 hours left to enroll

627 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