In my football statistics database, I need to be able to add text from a current field to text in the previous record. For example:
If a team scores a touchdown, then I have it coded to describe what happened:
If Me.Score_Type_Description = "Rushing Touchdown" Then describe = "#" & Me.Player_Scored_Number & " " & Me.Player_Scored & " " & Me.Yards_Gained & " yd Touchdown Run."
This description is added to the table and we move on to Special Teams. If the kick is good or no good, another description is generated:
If Me.Score_Type_Description = "Extra Point" Then describe = "Extra Point by #" & Me.Player_Scored_Number & " " & Me.Player_Scored & "."
Now, I need to be able to connect these two descriptions so they are basically the same sentence. So it might read:
#27 SCOTT 1 yd Touchdown Run. (Extra Point by #54 KNOODLE.)
I would like to store it in the previous record, because that is where I have other information stored (time on the clock, time of possession, plays, yards, etc.) when the touchdown was scored.
I probably could move all that ( information time on the clock, time of possession, plays, yards, etc.) over to the record with the special teams and then use DLast (and a query) to retrieve the touchdown description.
Any quick and easy ideas or should I charge ahead with duplicating the touchdown information onto special teams information?
Thanks!!
If a team scores a touchdown, then I have it coded to describe what happened:
If Me.Score_Type_Description = "Rushing Touchdown" Then describe = "#" & Me.Player_Scored_Number & " " & Me.Player_Scored & " " & Me.Yards_Gained & " yd Touchdown Run."
This description is added to the table and we move on to Special Teams. If the kick is good or no good, another description is generated:
If Me.Score_Type_Description = "Extra Point" Then describe = "Extra Point by #" & Me.Player_Scored_Number & " " & Me.Player_Scored & "."
Now, I need to be able to connect these two descriptions so they are basically the same sentence. So it might read:
#27 SCOTT 1 yd Touchdown Run. (Extra Point by #54 KNOODLE.)
I would like to store it in the previous record, because that is where I have other information stored (time on the clock, time of possession, plays, yards, etc.) when the touchdown was scored.
I probably could move all that ( information time on the clock, time of possession, plays, yards, etc.) over to the record with the special teams and then use DLast (and a query) to retrieve the touchdown description.
Any quick and easy ideas or should I charge ahead with duplicating the touchdown information onto special teams information?
Thanks!!