Results 1 to 4 of 4
  1. #1
    outandabout24 is offline Novice
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    2

    Help

    I am having problems with this.. can someone help?

    I am trying to create a text box that when a person enters the players name counts the number of players that have been entered. This would also count the number off all players from all teams not just the team that is displayed. Can anyone help? I am not good with Access.. I am just trying to help someone out because I have a little experience. Thanks all!

    Hope that made sense.. so if I have three teams.. one with 10 players names, another with 5, and I am entering in another 5 in the third team, the text box on the form would diplay 20. If I enter in another player it would be 21.. etc... Thanks all!

  2. #2
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    In order to do this you need to program an event of the textbox. For instance the lostfocus event of the textbox.
    Code:
    private sub txtName_LostFocus()
        me.txtAmount = dcount(...)
    end sub
    HTH

    PS didnt look at your database yet.

  3. #3
    outandabout24 is offline Novice
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    2
    What would go inside the dcount?

  4. #4
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    Quote Originally Posted by outandabout24 View Post
    What would go inside the dcount?
    try F1.
    It depends on the fieldnames and tablenames you use.

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums