473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

how can i check if an access field is null using VB6

how can i check if an access field is null using VB6
these codes donot work:
If rs("lemmaid").Value is null
If rs("lemmaid").Value = null
If rs("lemmaid").Value =""
Sep 19 '07 #1
1 67029
ADezii
8,834 Expert 8TB
how can i check if an access field is null using VB6
these codes donot work:
If rs("lemmaid").Value is null
If rs("lemmaid").Value = null
If rs("lemmaid").Value =""
  1. To check see if a Field contains a Null Value in VB6:
    Expand|Select|Wrap|Line Numbers
    1. If IsNull(rs("lemmaid")) Then
    2.   'Field contains a Null Value
    3. End If 
  2. To check and see if a Field does not contain a Null Value in VB6:
    Expand|Select|Wrap|Line Numbers
    1. If Not IsNull(rs("lemmaid")) Then
    2.   'Field does 'not' contain a Null Value
    3. End If 
  3. Two for 1 special:
    Expand|Select|Wrap|Line Numbers
    1. If IsNull(rs("lemmaid")) Then
    2.   'Field contains a Null Value
    3. Else
    4.   'Field does 'not' contain a Null Value
    5. End If 
Sep 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: dtemlak | last post by:
Hi there I am a bit new to vb.net. I have figured out how to use a data reader to get column and row information from my MS Access database using OLEDB. The problem is that while I can easily get...
4
by: Rich | last post by:
I have a access form that is connected to linked sql table via odbc. I have some fields that I dont want to allow nulls when data is entered via the form. I can set the null checking on the SQL...
3
by: stueyh | last post by:
When attempting to connect to an Access 2000 DB using ADO.Net from within ASP.Net running under an impersonated local user account receiving the following error. ERROR Disk or network error....
1
by: Andy | last post by:
Hi, I was wondering if someone could advise on if the following is possible. I have one website that is available to the public using Forms authentication and the Membership class, it...
4
by: kanpeter | last post by:
Hi, How can I check if all bytes in a varchar field is all numeric using SQL ? -- peter
1
by: ahmed222too | last post by:
how can i check if a field is null using VB6 these codes donot work: If rs("lemmaid").Value is null If rs("lemmaid").Value = null If rs("lemmaid").Value =""
8
by: Bhuwan Bhaskar | last post by:
Hi, Can we access database (SQL) using AJAX ? Thanks, Bhuwan
1
by: Agnes | last post by:
pKcno = myReader.Item("kcno") <--it will return error when the field "kcno" doesn't exist any method to check the field exist or not first , if not exist, I want to skip the above statement. ...
2
by: Resmy Ravi | last post by:
how to make a field null in access
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.