Thanks, I think I will just use the firstrecord and lastrecord property of datasource and not worry about multiple ranges and excluding records then.
----- Peter Jamieson wrote: -----
Actually, I was wondering how would you do this in Word 97, since the
include property is not available.
Can't help with the VB.NET side, but the Included property isn't available
before Word 2002. So the only way to include/exclude records in earlier
versions is to eliminate them using the sort/filter features, and
programmatically that means you have to build the correct SQL string for the
data source being used. Further, you only have about 255/512 characters to
play with in the string so it may not always be feasible.
--
Peter Jamieson
MS Word MVP
Feng said:
Actually, I was wondering how would you do this in Word 97, since the
include property is not available.