By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

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

P: 47
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
Share this Question
Share on Google+
1 Reply


ADezii
Expert 5K+
P: 8,619
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

Post your reply

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