Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21197

[RESOLVED] how to check a null value in the database access

$
0
0
i'm trying to check 2 values in the table if its empty or not but i get item cannot be found in the collection corresponding
Code:

Set rs = CN.Execute("SELECT UserSmsUid, UserSmsUn from Users")
If rs(UserSmsUid) Is Null Or rs(UserSmsUn) Is Null Then
MsgBox "this user does not permissions to send data from the system", vbExclamation
Exit Sub
End If

Code:

name of the table
Users
UserID Long
UserName text
UserPass text
UserSmsUid text
UserSmsUn text

i just want to check this 2 values UserSmsUid UserSmsUn if its empty or not

if any info in required i will add
tnx in advanced salsa31

Viewing all articles
Browse latest Browse all 21197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>