Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Empty values

Posted on 2000-03-30
2
Medium Priority
?
186 Views
Last Modified: 2010-05-02
I have an access database that has a field that could have nothing in it. (Blank). I am trying to set up a loop that will test to see if the value is blank. i.e.
Do While Not RecSetWip.EOF
        If (RecSetWip("WIP-Count").Value = Empty) Then
            WIPCount = WIPCount + 1
        Else
            WIP = WIP + RecSetWip("WIP-Count").Value
            WIPCount = WIPCount + 1
        End If
        RecSetWip.MoveNext
    Loop

I have tried NULL, Empty, "", but everything sets off the "Run time error 94, invalid use of NULL". How can I check to see if the value is a empty (blank) value?
0
Comment
Question by:buyer
[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 6

Accepted Solution

by:
Marine earned 800 total points
ID: 2670670
Try using something like this.

Do While Not RecSetWip.EOF
If isNull((RecSetWip("WIP-Count")) Then
            WIPCount = WIPCount + 1
        Else
            WIP = WIP + RecSetWip("WIP-Count").Value
            WIPCount = WIPCount + 1
        End If
        RecSetWip.MoveNext
    Loop
0
 

Author Comment

by:buyer
ID: 2670696
Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 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