Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display records from a 4 th table

Status
Not open for further replies.

leifoet

Technical User
Jan 31, 2016
203
0
0
BE
I selected 3 tables (in MS FrontPage-code : fp_sQry="SELECT * FROM ..."

1. players
2. matches
3. competition (= combination matches + players)
The 4th table contains names of the possible substitutes of certain players (table not yet in my select query).

Currently I can get a list of all players for a particular match.
But in the list I want to see also the names of the substitutes (0 or 1 or 2) under / at the name of the players (bold)

e.g. List of Match XYZ
player 1 name - plays the match
player 2 name - plays the match
player 3 name - does not play
player 4 name - plays the match
substitute name1
substitute name2
player 5 name - plays the match
player 6 name - does not play
Player 7
...
The field SUB in Table Competition indicates how many substitutes there are (for player X and match Y).
With this field, I tried to call / to apply the 4th table (substitutes) into the loop (If SUB <> 0 then).

My problem
How can I interrupt the players loop to show the substitute(s) for player 4 (in the example)
and then resume the loop for player 5 etc.
=> without 'losing' the players loop.

Thanks for help.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top