I am running ArcPad version 10 and have a form collecting point data with a script that populates a form with information from the parcel layer beneath. Currently, the parcel shape files all reside in the same directory as the shapefile that is collecting the form data. The parcel layer is a basemap layer and I normally keep all my basemap layers in directories separate from my active working data directories, for instance c:\gis\base_map\parcels\parcel.shp. If I change the Set objParcels to reflect this directory, Set objParcels = Application.Map.Layers("c:\gis\base_map\parcels\Parcels"), I cannot get my script to work. The only way my script works is if I use Set objParcels = Application.Map.Layers("Parcels") and keep all my parcel shapefiles in the same working directory as my data being collected.
I am not a programmer so I could be doing something wrong, but is there a way to point back to my basemap directory or do I have to have my parcels in the same directory as the data I am collecting? This is going to cause a problem since my remote users are zipping up the directory to send over email and the parcels file is huge in size.
Thanks.