Re: invalid use of null

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ayaz Ahmed (ayaz_at_csquareonline.com)
Date: 03/19/04


Date: Fri, 19 Mar 2004 02:02:49 -0800

Hello,

Dim objrs As ADODB.Recordset '
Set objrs = New ADODB.Recordset
sql = "Select * from Assets_Info" 'Opent the USERS table
objrs.Open sql, objconn
'load the first combo box with the entries in the databases

If objrs.EOF = True Then 'if the Accounts table is empty
    MsgBox "The Assets Table is empty. Add some Assets' records", ,
"Alert"
    EOFFlag = 1 'the EOF is REached
    GoTo erra 'the end of this function
End If

EOFFlag = 0 'reset the EOF flag/ The table is not empty

While objrs.EOF <> True 'go until the EOF is reached

if is null(objrs.Fields("Asset_Name")) = false then
    cmbAPAssetName.AddItem objrs.Fields("Asset_Name") 'fill the combo
    cmbasstid.AddItem objrs.Fields("Assets_Id")
    Cmbastid.AddItem objrs.Fields("Assets_Id")
      
    objrs.MoveNext 'move and fill the combos with the next
record

Wend
end if

Thanks,

Warm Regards,
 
Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • TCPIP missing!
    ... Win XP Home SP3 ... Believe now completely gone: registry entries and program ... Mechanic fixed a load of errors too. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: TCPIP missing!
    ... Believe now completely gone: registry entries and program ... Reapplied SP3, "sff / scannow" completes successfully, Registry ... Mechanic fixed a load of errors too. ... If anyone knows how to get back the 2 "MSAFD TCPIP" entries please ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: TCPIP missing!
    ... Win XP Home SP3 ... Believe now completely gone: registry entries and program ... Mechanic fixed a load of errors too. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: ojb setup-db problem with current ojb-blank.jar
    ... >> How can I make it produce the sql files? ... > it either hangs with full CPU load or crashes. ... > has no length setting though its jdbc type requires it (in most ... > databases); ...
    (comp.lang.java.help)
  • Re: Problem restoring saved artirst states on Linux (ic5033)
    ... you try to load a saved artist states. ... Linux started being used which happened not to return. ... first two entries in the directory. ...
    (comp.cad.cadence)