Results 1 to 4 of 4
  1. #1
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    33

    Query Issues

    I have 2 tables. One is the BadgesAudit and the other is the BadgesList.

    I created a query that goes through the BadgesAudit and counts how many times a badge shows up on the list. This works fine. When I tried to join the query with the table and have it update its numbers, I receive an error stating I need to use an updateable query. I do not know why that is happening.



    Well I decided to instead use a Make-Table query and it creates the table correctly but when I create the update query between the two tables, all it does is put a 1 in the BadgeCount field instead of the correct count. I cannot figure this out. For example, BadgeCount has badge 1 as 86 but the badgeCount in the badge list is only 1 not the actual number.

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,575
    And you cannot possibly shows us the queries sql that you used?
    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
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    300
    The count is a calculated value and you should not store that. Just calculate it whenever needed.
    Groeten,

    Peter

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,426
    Why your query can be read only:
    http://allenbrowne.com/ser-61.html

    I would guess that your issue is the very first one in the list. Also agree - you should not store calculations - just do them on the fly in a form or a report.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Query speed issues
    By thart21 in forum Queries
    Replies: 2
    Last Post: 04-07-2010, 05:16 PM
  2. Replies: 1
    Last Post: 03-23-2010, 04:01 PM
  3. Query duplication issues
    By MiCCAS in forum Queries
    Replies: 1
    Last Post: 02-18-2010, 11:31 AM
  4. between query issues
    By jderrig in forum Queries
    Replies: 4
    Last Post: 01-15-2010, 02:30 PM
  5. Replies: 4
    Last Post: 11-06-2009, 09:51 AM

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