Here we will learn how to query related records and use this knowledge to do some calculations on these records.
In this section, we will learn how to query the related reviews table and show them on our form. For that, we need to first select a particular restaurant from the list and then query the table:
Open Visual Studio Express in Administrator mode; we need to do this since our project is actually writing to the registry this time, so it needs administrator permissions. To do that, right-click on Visual Studio and click on Run as administrator.
Go to File | Open Project, browse to the
Bestaurants
project from theC:\ArcGISByExample\bestaurants\Code
, and click on Open.Note
You can start from where you left in Chapter 5, App 2 – Extending ArcObjects, or you can use the code
B04847_06_Files\bestaurants\StartCode
, copy it in toC:\ArcGISByExample\bestaurants\Code
, and start working.Double-click on
frmRestaurantsViewer.vb
to open the form...