mudstuffin
Technical User
Hello.
I am building an access xp db for my sports club which holds information about the matches, players, finances etc.
Within that I have a form with a subform on it which lists each match and I add in who played in that match. On the main form, I have a textbox which counts the records in the subform. However, I want the textbox to update when I add or delete a record to the subform. I have got it to work with the adding of records by using the afterupdate event, which triggers a dcount, but it wont work when deleting a record.
mainform = matchtable1
subform = PlayersPlayedTable Subform1
textbox holding the recordcount (on mainform) = PlayersPlayed
Can anyone tell me how I can do it....?
Thanks,
mudstuffin
I am building an access xp db for my sports club which holds information about the matches, players, finances etc.
Within that I have a form with a subform on it which lists each match and I add in who played in that match. On the main form, I have a textbox which counts the records in the subform. However, I want the textbox to update when I add or delete a record to the subform. I have got it to work with the adding of records by using the afterupdate event, which triggers a dcount, but it wont work when deleting a record.
mainform = matchtable1
subform = PlayersPlayedTable Subform1
textbox holding the recordcount (on mainform) = PlayersPlayed
Can anyone tell me how I can do it....?
Thanks,
mudstuffin