+ Reply to Thread
Results 1 to 3 of 3

Hoping for guidance on creating database (Access) - Start up

  1. #1
    Registered User
    Join Date
    11-20-2017
    Location
    Stalybridge, England
    MS-Off Ver
    2010
    Posts
    2

    Hoping for guidance on creating database (Access) - Start up

    Hoping someone can help with this project - see attached spreadsheet.

    To explain the spreadsheet, its all tennis matches on the ATP Tour 2017.

    It shows the two players and under column header 'bpb' it shows the point by point data of the match.

    Example

    SSRSRRSRRR;RSSSRS;RRRR;SRRSSS;SSRRSRSS;SRRRR;SRSRSS;SSRSS;RRRSSSSRRSRSSRRSRR.RSSRRSSRSRSS;

    The 'S' represents a point won by the server, 'R' represents a point won by the receiver, ';' represents the end of a game and '.' represents the end of the set. The server in the first game will be Player 1 and the server in the second game will be Player 2. This will change throughout the match after each game.

    So basically what I'm looking to do is create a database including all the matches which would have the ability to query results given a certain scorelines. For example if a certain player is 15-30 down on serve (which would be represented by a combination of 1 'S' and 2 'R's in the first three points of that game), how often did they go on to win that game. Another example would be if a player is 4-2 down in games how often do they come back to win that set.

    Could anyone provide any suggestions as to where to start with this? How many levels would it need to be broken down into to be able to carry out queries like the above - points,sets,games?

    Obviously I don't expect a step by step guide as I'm guessing this is a long winded process but anyone's input would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Hoping for guidance on creating database (Access) - Start up

    i would say:
    you will loop thru table, 1 record at a time, grab the pbp value, then process it to another table with pbp results
    a custome routine would process 1 character at a time posting net results as you go:

    game#,playerID, P1net, P2net,result
    1,player1 , +1,-1
    1,player1 , +2,-2
    1,player2 , +1,-1
    ...
    1,player1, -2,+2, L

    then you can do some analysis on the serves.
    same with Games.
    it would also post results to a game analysis table.

    But you have to know the question in order to get the result....ie ('if a player is 4-2 down in games how often do they

    come back to win that set.')
    every question may need a custom routine.

  3. #3
    Registered User
    Join Date
    11-20-2017
    Location
    Stalybridge, England
    MS-Off Ver
    2010
    Posts
    2

    Re: Hoping for guidance on creating database (Access) - Start up

    When you say custom routine are you referring to code? I'm fairly new to using vba so I can do basic stuff like looping tables etc. but currently looking to further my knowledge. Just unsure as to how you would assign net values to each letter and how it would process the game number recognising the semi colon as the end of game.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating Access Database for Resume
    By kets4u in forum Access Tables & Databases
    Replies: 5
    Last Post: 06-09-2016, 11:59 AM
  2. Replies: 2
    Last Post: 07-05-2013, 09:37 AM
  3. Creating an Access Database using Excel Spreadsheet (VBA)
    By awan0126 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2011, 10:00 AM
  4. guidance in analysing a database
    By Claudia_MBA_Student in forum Excel General
    Replies: 4
    Last Post: 04-13-2009, 06:58 PM
  5. Creating a Calendar from Access DataBase
    By dlroo in forum Excel General
    Replies: 0
    Last Post: 06-19-2008, 03:43 PM
  6. Creating macros in Excel so info in Access database can be shown in spreedsheet
    By tutorgirl_86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2008, 03:20 AM
  7. Replies: 1
    Last Post: 02-24-2006, 11:15 PM
  8. [SOLVED] Guidance with creating a bespoke .txt
    By Krayten in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2006, 06:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1