Results 1 to 4 of 4
  1. #1
    ffezz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    2

    Editing Records In Table Using Form


    Hello. I am pretty new to access and VB so I'm going to describe my database design and then give you the problem so you can tell me if there might be a better way to do it.

    We are running a chess club at my school. We want to keep stats with access so I made a table with 8 fields. ID, First Name, Last Name, Rank, Wins, Losses, Draws and Win percentage.

    I then created a form with two lists, and a frame with 3 buttons with the options Player 1 wins,
    players 2 wins and draw. I added a button at the bottom that serves to update the database.

    What I want it to do is Use the selected radio button to add a win/loss/draw to the appropriate records which are selected in each field. I will then have to re-organize the ranks for most of the entries because the rules are custom and pretty strange. When you beat a player with a higher rank than you, you move up half the difference in ranks, which will have to force all the records bellow to move down, while the player you played loses only one rank. This makes it easy to get to the middle of the list and progressively harder to get up to the top. I have no idea how to program the sub for the button click though.

    Any help is appreciated.

    Thank you,
    Chris

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Sounds like very complicated algorithm and not something anyone is just going to 'whip out'.

    Might find some applications out there you can adapt. Start with this in your search (no idea what the software environment is) http://www.enpassant.dk/chess/softeng.htm#CBLIGHT
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ffezz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    2
    Huh I think you are misunderstanding. What i am having trouble finding is the code that will select the appropriate player from the table based on the selection in the menu. For example, if a player named "John Doe" is selected, then have the form query the table, find the player selected, and then based on the selection, add a win, loss or draw in a separate column for each

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    You don't want code to do the ranking - you will make that determination and manually enter rank value?

    Okay, so you want a way to find player record? Build a form with a query as RecordSource and filter the form recordset. Here is one way: http://datapigtechnologies.com/flash...tomfilter.html

    The radio button usage has me baffled. I have never used radio buttons for data entry. Do you want to provide project for analysis?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. problem in editing records with visual basic
    By davidvhp in forum Programming
    Replies: 31
    Last Post: 12-05-2011, 07:36 PM
  2. Replies: 17
    Last Post: 11-24-2011, 03:37 AM
  3. Lock Record for Editing on a Linked table
    By khalid in forum Programming
    Replies: 3
    Last Post: 06-14-2011, 08:37 AM
  4. Replies: 1
    Last Post: 05-17-2010, 12:03 PM
  5. Editing a Linked Table
    By amndza in forum Access
    Replies: 2
    Last Post: 01-21-2009, 01:27 PM

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