Solved! Go to Solution.
<BUTTON onclick="Messagebox GPS.X" name="Easting_button" x="3" y="18" width="10" height="12" caption="E" tooltip="" tabstop="true" border="false" alignment="center">
objPage.Controls("E").Value = Application.GPS.X
I'm developing a stream monitoring data collection application that uses 3 related tables.
The top level of the database uses point data to locate a monitoring site, but then off of that point there is a related table that will have 3 rows (3 separate sample locations) for each point. The locations of these sample sites changes year to year due to stream morphology, and it would be ideal to be able to record the xy of each sample site for each year.
Currently I can write XY data to the related table using an onload event and the code below, but the problem is, I don't get the current GPS position, rather I get the XYs of the feature point driving the relationship. Any help on this would be great!
So the real question is: How can I write the the current GPS location to a related table (I don't want to create a shapefile, just tabular data).
Cheers.
Dim objPage, objControls
Set objPage = ThisEvent.Object
Set objControls = objPage.Controls
objPage.Controls("E").Value = GPS.X
objPage.Controls("N").Value = GPS.Y
<BUTTON onclick="Messagebox GPS.X" name="Easting_button" x="3" y="18" width="10" height="12" caption="E" tooltip="" tabstop="true" border="false" alignment="center">