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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling blank values using varRecords 1

Status
Not open for further replies.

elpico

Programmer
May 14, 2003
19
0
0
GB
Hi all,

Some of the data in my db table can be blank, but when that is the case I am having problems loading them in as values using the varRecords option.

varRecords = rst.getRows(rst.RecordCount)

For intJ = 0 to UBound(varRecords, 2)
site = varRecords(0, intj)
env = varRecords(1, intj)
next intj

Sometime my env value is empty, but I'm getting a Error number 94 null value error when this happens - Any idea how I can load blank values in?

Thanks,
e.
 
Take a look at the Nz function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top