Thanks for attaching your data Percy. Taking a look at the two layers, it appears that '1a' resembles more of a boundary than 'Query1a'. However, at the moment the boundary is actually made up of lines, as can be seen in the Layer Control (screenshot below illustrates this). Assuming that you would like to use '1a' as a boundary layer to select all objects which are within it, you would therefore need to convert it to a region first. This can be done by making the layer editable in the Layer Control then selecting the line objects and going to SPATIAL > Convert to Regions under the Create area
![ScreenHunter 56]()
Once the '1a' layer has been converted to regions, you could perform a SQL Select under SPATIAL > SQL Select to select all objects from 'Query1a' table within the boundary of '1a'.
![ScreenHunter 57]()
Please refer to the following KB article which provides useful instructions and is a further example of the process applied above, where the same function is used to select points which fall within polygons.
http://support.pitneybowes.com/VFP05_KnowledgeWithSidebarHowTo?id=kA180000000CerBCAS&popup=false&lang=en_US
Hope this helps!
Dave