I've attached an image of my Form-In-Progress. I thought this might be of general assistance. This db holds information necessary to play a tabletop baseball game.
The two lighter colored panels are the subforms in question. Each subform is based on a table of player hitting information. Each table as a "PlayerID" field which links the player hitting info back to the main form and the basic player data. That serves as the Child. The main form field with the label "ID Check" is named "txtHitterRecChk". It is the Master for the subforms.
Each of the 25 text box on each subform gets its Control Source from an unseen combo box on the same subform. The combo box has the following SQL code for its Row Source:
Code:
SELECT tblSymbols.SymbolID, tblSymbols.DisplaySym FROM tblSymbols;
The combo boxes, as well as the visible text boxes, are named "txtLHPNO01" and "comboLHPNO01" with the text in the name corresponding to "Against LHP" and "None-On". The visible text boxes are positioned to correspond with the dumb labels down the center of the main form, 1 thourgh 25, with final two digits in the control name changing correspondingly.
This code retrieves a symbol from a symbol table (imaginatively titled "tblSymbols") which the user can make sense of (1B, GO, K, W, etc.). The function code posted in the first thread adds another field completing what you see, i.e. 1B9 and GO6. The numbers represent a fielding position to which the type of batted ball (as represented by the text symbol) is hit. For a "K" (strikeout) or a "W" (walk), the ball is not hit and therefore no following number.
I did try Dlookup but I could not figger out the syntax. I think that method holds promise when implemented by some who knows what the h*@# they are doing. That's not me.
I hope this helps.