Results 1 to 3 of 3
  1. #1
    Steven.Allman is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Feb 2010
    Posts
    118

    Append Query

    Seems simple, not sure what i am doing wrong here.
    Just want to append a new record to the table, based on the criteria of he combobox player.
    If I remove the WHERE from the SQL, then it loads the date and score once for each player.
    What super simple thing did I miss?

    golf.accdb

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Well you appear to be trying to compare a name to an ID?
    The bound column is the PlayerID, so you need to compare against that?

    Players is a name
    Combo is an ID

    Code:
    INSERT INTO rounds ( Round, points, player )
    SELECT [forms]![score_entry]![text5] AS Expr1, [forms]![score_entry]![text3] AS Expr2, players.players
    FROM players
    WHERE (((players.players)=[forms]![score_entry]![combo1]));
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Steven.Allman is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Feb 2010
    Posts
    118
    Bingo..
    thanks buddy

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

Similar Threads

  1. Replies: 4
    Last Post: 02-03-2021, 08:32 AM
  2. Replies: 19
    Last Post: 10-03-2017, 09:10 AM
  3. Access can't append all the records in the append query
    By fluffyvampirekitten in forum Access
    Replies: 2
    Last Post: 08-27-2015, 01:53 AM
  4. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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