Delete elements from array

User avatar
sal21
PlatinumLounger
Posts: 4373
Joined: 26 Apr 2010, 17:36

Delete elements from array

Post by sal21 »

I create an array from sql to get 3 value from fields for example:
Sql="f1, f2 f3 from eccc"
Now i fill array with:
Set rs Getrow()
Array eccc

Now i need to delete all
elements from array where the related element of rs f1="aa"

Note:
Rs f1 not contain duplicates

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Delete elements from array

Post by HansV »

You could change the SQL to

Code: Select all

Sql = "SELECT f1, f2, f3 FROM sometable WHERE f1<>'aa'"
Best wishes,
Hans