Main Table: tblIndividual -
IndID,FirstNM, MiddleNM, LastNM, DOB, GenderID, EthnicityID, Height, Weight, HairCLR, EyeCLR, ARNB, NatNB, FileNB, Alias, Add_Info, Picture, Entered_By, Date_Entered
Combo Box 1: tblCountry -
CountryID, CountryNM, Country_Abbrev, ContinentNM, Cont_Abbrev
Combo Box 2: tblDays -
DaysID, Days
tblPassport: PassportID, IndID, PassportNB, CountryID, Date_Issued, Date_Expired
tblIndividual is on a 1:Many relationship with tblPassport on the IndID field.
tblCountry is on a Many:1 relationship with tblCountry on the CountryID field.
The data, after the query is run would have to be like:
X number of people from Country X during time (Choice A - selected days from tblDays) OR (Choice B - Selected date interval from two text boxes)OR [if no other choice is selected] (Choice C -Default 365 days prior)
I have no idea on how to write this query at all, let alone how to get the information to be displayed in a Pivot Chart (Bar Graph).
I'm trying to figure this out as I'll need to reuse the same query (with edits) to display similar information on similar requests.
|