Results 1 to 4 of 4
  1. #1
    Andyjones is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76

    Access 2010 form help

    Hi Could somone please figure this out scratching my head with it now



    On the Match Date form when I select Home for match type and then enter player name score then opp player Name and score it should auto populate with 2 points if its an away home win and 3 points if it is an away win per player.

    If my player points at home =21 then my player will receive 2 points and if my player away score is 21 then my player received 3 points.

    It all works up until i delete the test data to start entering actual data, could someone take a look and try and figure it out please.

    Attached Files
    new test1.zip (383.8 KB, 6
    Attached Files Attached Files

  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
    The points data looks like something that could be calculated as needed and would not need to be saved to table. Use this expression as ControlSource for the Points textbox: =IIf([OurScore]=21,IIf([Forms]![frmMatchdate].[frmMatchDateType subform].[Form].[MatchDateTypeID]=1,3,2),0)

    If you must save Points to table then will need VBA code in some event. I'm just not sure which one will work best for your situation. I normally control something like this in a button that closes the form. I disable the X close on all forms.
    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
    Andyjones is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76
    OK I need the score to be saved in a table,.

  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
    As I said, not sure what event but assuming you figure that part out and the Points field is included in the form's RecordSource, code in the event could be simply:

    Me!Points = Me.Points
    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. Restricted Access on Access 2010 Navigation Form
    By need_help12 in forum Security
    Replies: 6
    Last Post: 05-02-2012, 10:35 AM
  2. Access 2010 and form hyperlink
    By grapin in forum Programming
    Replies: 2
    Last Post: 03-22-2012, 01:11 PM
  3. Replies: 6
    Last Post: 02-18-2012, 07:20 AM
  4. Replies: 9
    Last Post: 08-07-2011, 11:21 AM
  5. Replies: 5
    Last Post: 03-11-2011, 10:29 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