The SetRange method restricts a table to a date range.
All Table objects
objAppointmentsTable.SetRange StartDate, EndDate
If no parameters are passed, previous restrictions are removed. A call to the SetRange method also resets the cursor to the top of the table. The following sample code shows how both dates require an opening and closing # character:
objTable.SetRange #11/16/95#, #11/18/95#
Note This method must be called before using a merged table.