G
Guest
I am trying to write a filter to use in a restict statement to identify
contacts whose subject is missing (i have no idea how this happened, but it
did, and it creates problems with the outlook address book).
the filter myitems.restrict("[subject] = " & vbnullstring) returns no items,
although several have their subject missing.
there are hundreds of affected contacts, so I want to be able to initially
obtain a collection of all such contacts (ie subject missing) so i can then
place a further restriction based on the first letter of the last name. this
way i can deal with the problem in alphabetical "chunks" to save downtime.
eg my items = myitems.restrict( - your suggestion here)
myitems = myitems.restrict("[Last Name] < " & strInitial)
for each item in myitems
myitem.subject = myitem.full name
myitem.save
next item
this way each successive routine will only have to process those items whose
initial letter of the last name is less than "strInitial" and who have the
missing subject.
will only process
contacts whose subject is missing (i have no idea how this happened, but it
did, and it creates problems with the outlook address book).
the filter myitems.restrict("[subject] = " & vbnullstring) returns no items,
although several have their subject missing.
there are hundreds of affected contacts, so I want to be able to initially
obtain a collection of all such contacts (ie subject missing) so i can then
place a further restriction based on the first letter of the last name. this
way i can deal with the problem in alphabetical "chunks" to save downtime.
eg my items = myitems.restrict( - your suggestion here)
myitems = myitems.restrict("[Last Name] < " & strInitial)
for each item in myitems
myitem.subject = myitem.full name
myitem.save
next item
this way each successive routine will only have to process those items whose
initial letter of the last name is less than "strInitial" and who have the
missing subject.
will only process