Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Querying reviews and ratings


Here we will learn how to query related records and use this knowledge to do some calculations on these records.

Retrieving related 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:

  1. 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.

  2. Go to File | Open Project, browse to the Bestaurants project from the C:\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 to C:\ArcGISByExample\bestaurants\Code, and start working.

  3. Double-click on frmRestaurantsViewer.vb to open the form...