Hi,
I am trying to assign a recordset into an array and keep getting a type mismatch error, iCount is a number as is cat_id.
anyone see where I am going wrong?
iCount = 0
Do Until rsCatid.EOF
arrCatid(iCount) = (rsCatid.Fields.Item("cat_id".value)
arrCatname(iCount) = rsCatid.Fields.Item("cat_name".value
iCount = iCount + 1
rsCatid.Movenext
Loop The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
I am trying to assign a recordset into an array and keep getting a type mismatch error, iCount is a number as is cat_id.
anyone see where I am going wrong?
iCount = 0
Do Until rsCatid.EOF
arrCatid(iCount) = (rsCatid.Fields.Item("cat_id".value)
arrCatname(iCount) = rsCatid.Fields.Item("cat_name".value
iCount = iCount + 1
rsCatid.Movenext
Loop The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)