Results 1 to 6 of 6
  1. #1
    mdnikki is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    63

    Multiple reports- Able to create macro to update dates

    Not sure if a macro is what I would use but here is the scenario.



    We have a database that we use for distributions for our multiple locations. Each location (140 of them) has a query set up and a report pulls from that query.
    On the report currently is a text field that says "Payments received through XXXX". This date varies each time it is run.

    So I am trying to figure out how to get this date updated either in each of the queries that pulls the reports or each of the reports without having to go into 140 of them and update.

    Hoping this makes sense.

    Any help is appreciated.

    Nicol

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    Multiple reports- Able to create macro to update dates

    Where is the date stored? In the query for the report? Ignore.

    How is the date calculated /worked out. Is it the date the report is printed?


    Sent from my iPhone using Tapatalk
    Last edited by andy49; 01-25-2017 at 02:07 PM. Reason: Can't read !!

  3. #3
    mdnikki is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    63
    The date would be entered manually. Originally we had one report that had all 140 locations on it so we would just go into that one report itself and type in the date .

    They have now asked us to split it out by location. So we created queries that drive each of the reports but the date would still be a manual entry. Just hoping to manually enter it one time to update the report.

  4. #4
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Still a little unclear.

    For future reports you could store the current date in a field of the query. Or just use &date() to show the date on the report.

    If you need another date in there which is on the database then that's fine.

    If the date was entered into a textbox on a report then you could write a code to open the report, strip the date out and store it for future needs.

    As I say. Your details are rather vague could you provide a photo maybe of a report you have and what's wrong with it?


    Sent from my iPhone using Tapatalk

  5. #5
    mdnikki is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    63
    Ok here you go. This is the report the date in the line highlighted in yellow is what is updated each time we run these.

    As you can see from the panel we have a report for each Parish and are hoping not to have to manually add this date to each of them. The date is not stored anywhere at this time. It is run quarterly. So each quarter we manually enter the date.

    Click image for larger version. 

Name:	access report.jpg 
Views:	5 
Size:	298.7 KB 
ID:	27235
    Attached Thumbnails Attached Thumbnails access report.jpg   access report 2.jpg  

  6. #6
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Create a form, add a text field for the date. The report field (is it a label?) will have a caption of: "Representing..." & Forms!FormName!DateField

    You should apply the same logic to the parish and have only ONE query for all. As you say, always having to make changes to all queries is not only time-consuming but leaves you wide open to problems. If you run all the reports together each time you could create a simple VBA module. Any of us could help you with that.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-26-2015, 08:29 PM
  2. Replies: 26
    Last Post: 09-18-2014, 10:18 AM
  3. Replies: 8
    Last Post: 10-10-2013, 11:01 AM
  4. Replies: 2
    Last Post: 06-25-2013, 05:48 AM
  5. Update dates for multiple (not all) records
    By thekruser in forum Access
    Replies: 2
    Last Post: 08-30-2010, 05: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