Hi. I'm creating a database which will store data for a number of areas. I've created a table called dataset which will describe each dataset and allocate it an ID; a table called geography which will describe each area and allocate it an ID; then a third table which will hold the value for each dataset at each geographical level (DataID, GeographyID, DatasetID, value).
I need to enable users to select any number of datasets and display them for any number of geographies. I thought the best way to do this is to guide them with a couple of forms which will display the available datasets, allowing them to select which ones they want to display, then a form displaying the available geographies and they can select the ones they want to display. I'll then use the selected records to run a query and produce a report.
My problem is how do I allow them to select multiple records from each form and then transfer this info into a query. If it was just one record to select I'd use record selectors and pass the ID over to the query but don't know how to approach this for multiple selections from two tables.
Mile-O-Phile suggested I use the In() Keyword in a dynamic query (i.e.
WHERE MyField In(thisvalue, thatvalue, othervalue, etc)) but I cant find any guidance on this in Help files or on here anywhere.

I need to enable users to select any number of datasets and display them for any number of geographies. I thought the best way to do this is to guide them with a couple of forms which will display the available datasets, allowing them to select which ones they want to display, then a form displaying the available geographies and they can select the ones they want to display. I'll then use the selected records to run a query and produce a report.
My problem is how do I allow them to select multiple records from each form and then transfer this info into a query. If it was just one record to select I'd use record selectors and pass the ID over to the query but don't know how to approach this for multiple selections from two tables.
Mile-O-Phile suggested I use the In() Keyword in a dynamic query (i.e.
WHERE MyField In(thisvalue, thatvalue, othervalue, etc)) but I cant find any guidance on this in Help files or on here anywhere.
