Hi Mark,
Thank you for your help and I really like the way you defined each line. I need to force myself to do that for clarity.
You’re not gonna believe this but I actually had been trying to get the same code as yours to work. Yours didn’t work either, or so I thought. On a whim, and thinking that your code would most certainly work, I changed the @ResultSetValue to an LE on the subform that had many more entries, and low and behold, I get a result. So, I changed the @ResultSetValue back to the original and scrolled up in the wrtieln() window and found the “Team Code” results. I hadn’t realized before that the results were there all along, along with all the “Team Code” results that did not contain data. So, the question now is how do I get it to show only Team Code’s that aren’t blank? I’ve played around with @Isblank = False without success. Any ideas?
Also, when I direct the results to a @popupchoicelist, all of the results do not get displayed at one time, just one result is shown. In order to see the rest of the results, I have to click on the popup window over and over. I don’t have this issue if I use the same popup code with search results from the parent form, only when I get results from the subform. Any Ideas?
Regarding; “To get the first Team Code for a Player, do not loop through all of them, index the first one and use it.” I’m not sure how to index the first one. I have a default sort spec to put the last entry on the top. When I remove the subform looping from the code and I add an additional team code to the subform, I get the same result, it ignores the newly added team code.
Thank you for all of your time,
Brandon
|