Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array invalid use of null

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I have a two dimension array. He gets the data from a table. Array CargoOn(i, 1) has always a value because for every record there is a value. Array CargoOn(i, 2) does not always have a value, because sometimes for a record there is not a value (NULL). When running the code he saids, "invalid use of null". What do I need to do ?

Code:
rst.MoveFirst
i = 1
For i = 1 To rst.Fields(0)
    CargoON(i, 1) = rst!cargo_cont
    rst.MoveNext
Next i

i = Empty
i = 1
rst.MoveFirst
For i = 1 To rst.Fields(0)
    CargoON(i, 2) = rst!CARGO_
    rst.MoveNext
Next i[Code]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top