Where is the combo box getting the values Air Force and Navy from?
tblRoster the tblMars line I added and the frmRoster has them listed too.
Where is the combo box getting the values Air Force and Navy from?
You need to add the index in the affiliates table.
This isn't a straightforward index because you have two fields, you have the field which stores the value which relates to the person in the roster table, and then a field for the affiliation.
RosterID > 8 ~ AffiliateRef 1
RosterID > 8 ~ AffiliateRef 3
RosterID > 8 ~ AffiliateRef 4
RosterID > 8 ~ AffiliateRef 7
You want the combination of 8~1, 8~3, 8~4, 8~7 to be unique.
With regard to the above sequence you need it to refuse another entry of:- 8~3...
In the Affiliate table select index's, select both fields:- RosterID and AffiliateRef, and select "Unique".
Where is the combo box getting the values Air Force and Navy from?
You will need to create the index.Are you saying to add a new index or one that already exists?
You need to add the index in the affiliates table.
This isn't a straightforward index because you have two fields, you have the field which stores the value which relates to the person in the roster table, and then a field for the affiliation.
RosterID > 8 ~ AffiliateRef 1
RosterID > 8 ~ AffiliateRef 3
RosterID > 8 ~ AffiliateRef 4
RosterID > 8 ~ AffiliateRef 7
You want the combination of 8~1, 8~3, 8~4, 8~7 to be unique.
With regard to the above sequence you need it to refuse another entry of:- 8~3...
In the Affiliate table select index's, select both fields:- RosterID and AffiliateRef, and select "Unique".
Check to see if the Affiliate data entry works like you want it to.Ok, I created AffiliateIndex in the Affiliate table.
Next step?
Check to see if the Affiliate data entry works like you want it to.
Ok, I did and it sort of works. There are three problems left. The one that is keeping it from being usable is the License Class Report so let's look at it first.
do you mean:- the report - "rptCountOfRosterClass" ?
Both the report and the query. I don't care so much what is shown on the query, unless I have to have the info there for the report, but the report is what is important.
The new license classes are Tech, General, and Extra (The FCC combined the old ones but some people still have the old ones.)
The club gives classes to get the Tech license but not General and extra. This would show the need to offer classes for General and Extra Licenses.
Ok, I did and it sort of works. There are three problems left. The one that is keeping it from being usable is the License Class Report so let's look at it first.
When I do the query or report, I am getting a number instead of the name of the class and the total count for that class.
The total is what we want, but we need the name of the class, not the number. Ex. 13 is HF Tech. We need it to say "HF Tech" not 13.
SELECT tlkpInfo.tlkpInfoDesc, Count(tblRoster.RosterClass) AS CountOfRosterClass
FROM tlkpInfo INNER JOIN tblRoster ON tlkpInfo.tlkpInfoID = tblRoster.RosterClass
GROUP BY tlkpInfo.tlkpInfoDesc;
Now for the next problem. I need to limit the number of selections in the MARS and Affiliation boxes and prevent duplications in those boxes.
We've already covered this! You need to create an Index. Please see the video I linked to earlier. The video demonstrates adding, and indexing "One field". However in your case you need to add two fields... AND set the index to unique. So basically it's the same as in the video. BUT--- add two Fields instead of one. Give the index a name, and then select a field, then below that field, select next field. You can select a maximum of 10. In your case your table(s) only have two Fields in them, and you need to select both of the fields. Once you've done that make sure you select... (I think it's a checkbox) check the checkbox "Unique" by the way it won't work if the table already contains duplicate values or if some of the fields in the tables are empty. So before trying to create the index check the tables for duplicate values that means where the combination of the left and right field is repeated. You need to do this to both tables the Mars table "tblMARS" and the affiliate table "tblAffiliate"