Results 1 to 3 of 3
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Latest Records to a query from the table

    I created a Gmail address “PerfacDibi@gmail.com” for this purpose only. You login at WWW.GMAIL.COM the password is “Hans1263”. There should only be two invitations to see or download my database from DropBox, the front end and back end. All Images are outside Access so this demo not much bigger than 250meg.


    I have challenges on which I put in a lot of time but unfortunately no success yet.

    In my database you may find queries q04VatRate01 and q04VatRate02. A friendly guy on the forum helped me to achieve the correct result in a query that return the latest record against a specific item, but the query is not updateable. I.e. if there are 10 inventory items which prices changed 10 times, there could be 100 records in the price table. To return the latest record against each item, means the resulting query should return 10 records of the 100 in the table. When new price records are added they will replace old ones in the query.

    Click image for larger version. 

Name:	Vat01.png 
Views:	15 
Size:	210.7 KB 
ID:	33373Click image for larger version. 

Name:	Vat02.png 
Views:	15 
Size:	94.4 KB 
ID:	33374

  2. #2
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    I added a zipped file of the same database to the same email address that seems to be 612 bytes.
    Attached Files Attached Files

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,840
    queries that use aggregate functions are not updatable. Without me downloading your db -
    what might work is if you create a select query that uses a field from your existing query that isn't using such a function as a field you equal join on. I can't say for sure as I don't think I've ever joined a Totals query (what you have) to a select query. The idea being that the select query is updatable (not sure without trying myself).
    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. Replies: 1
    Last Post: 12-28-2017, 02:11 AM
  2. Query to Extract records with latest date
    By rkalapura in forum Queries
    Replies: 2
    Last Post: 03-13-2013, 05:48 AM
  3. Query to show latest records
    By Conceptz in forum Queries
    Replies: 3
    Last Post: 05-24-2012, 01:01 PM
  4. How to fetch latest records from table
    By India62 in forum Access
    Replies: 13
    Last Post: 05-19-2011, 11:43 PM
  5. Latest Date Records
    By Rick West in forum Queries
    Replies: 1
    Last Post: 09-25-2009, 11:16 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