G
Guest
In MSAccess Visual basic I have the following code
Dim myArray as variant
Dim intcount as integer
DO UNTIL rst.eof
'I print out data here
'I start to populate my array here, strFactorNumber are "T1.1", "T1.2"
and so on so that at the end the array should contain Myarray=("T1.1",
"T1.2", "T1.3", and so on)
myarray (intcount) = strFactorNumber
intcount = intcount +1
rst.movenext
loop
what I want to be able to do is to search myarray and find if a value
already exists there. If the value is found in the array then I would like
to skip it, if the value is not found then I would like to print it. I'm
pretty new to access and I need Major Help.
Dim myArray as variant
Dim intcount as integer
DO UNTIL rst.eof
'I print out data here
'I start to populate my array here, strFactorNumber are "T1.1", "T1.2"
and so on so that at the end the array should contain Myarray=("T1.1",
"T1.2", "T1.3", and so on)
myarray (intcount) = strFactorNumber
intcount = intcount +1
rst.movenext
loop
what I want to be able to do is to search myarray and find if a value
already exists there. If the value is found in the array then I would like
to skip it, if the value is not found then I would like to print it. I'm
pretty new to access and I need Major Help.