Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 44
  1. #16
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by deepaksharma View Post
    thanks mike
    1. Actually, what I mean is from today to those last seven days in which orders have been noted, it is not necessary that the work of noting orders is closed only on holidays, it can also happen that the employee doing noting the orders is going on holiday or some day the orders may not have been received.
    Therefore, I want to show the data of the last 7 days in which bookings have been registered.

    2. You have set the 7 days sub form to auto update. Please tell how you did this.



    3. Please also tell by which setting you have set the current date in red color in 7 days sub form.

    4. Calculation of total offer in 7 days sub form is not correct please check.
    Thank you.
    You really do not want to do ANY work for yourself, do you?
    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

  2. #17
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi

    Q1. Actually, what I mean is from today to those last seven days in which orders have been noted, it is not necessary that the work of noting orders is closed only on holidays, it can also happen that the employee doing noting the orders is going on holiday or some day the orders may not have been received.
    Therefore, I want to show the data of the last 7 days in which bookings have been registered.

    A1. I don't think you need to worry about holidays because you are only totalling items that have been entered.

    2. You have set the 7 days sub form to auto update. Please tell how you did this.

    A2. I already told you in my previous answer. After update of Meter Control.

    3. Please also tell by which setting you have set the current date in red color in 7 days sub form.

    A3. I didn't set the Red colour. Minty did this and it is carried out by using Conditional Formatting.

    4. Calculation of total offer in 7 days sub form is not correct please check.

    A4. Tell us what you expect to see as the result.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #18
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Welshgasman

    Even worse than me!!
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  4. #19
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Welshgasman View Post
    You really do not want to do ANY work for yourself, do you?
    I didn't understand what you meant Welshgasman

  5. #20
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi

    Q1. Actually, what I mean is from today to those last seven days in which orders have been noted, it is not necessary that the work of noting orders is closed only on holidays, it can also happen that the employee doing noting the orders is going on holiday or some day the orders may not have been received.
    Therefore, I want to show the data of the last 7 days in which bookings have been registered.

    Hello Mike, I have now understood points two and three very well. Thank you.

    Actually number of offers is showing wrong in recent orders form it should be shown as per attached pic
    Attached Thumbnails Attached Thumbnails rtUntitled.png  

  6. #21
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by deepaksharma View Post
    I didn't understand what you meant Welshgasman
    By that I mean you cannot even be bothered to see how Mike did what he did?

    As I mentioned before, you will learn nothing expecting everything to be handed to you on a plate.
    Eventually people will just get tired of feeding you code, and you will be left high and dry. You will be back where you started. Up to you.
    make some effort and people are more inclined to help you. That is my way of looking at it.

    I could recommend one forum where they will put up with stuff like that time and time again, but I do not feel it is even fair on that forum.

    The proverb 'Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for life' rings quite true for computer code as well.
    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

  7. #22
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Welshgasman View Post
    Teach a man to fish and you feed him for life' rings quite true for computer code as well.
    Let me tell you that I am new in Access and coding, I come to this forum only after doing all the hard work.
    I also looked at Mike's code thoroughly, when I did not understand anything then I asked Mike for an answer and I also agree with you.
    Thank you.

  8. #23
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    The following now should do what you want.
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  9. #24
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi
    The following now should do what you want.
    Thanks Mike it's working perfectly now.
    In this you did not make the meter column, then I made it.
    Now I am trying to show the data of these sub forms in seven rows only and show their total.
    If not successful, I will contact you again. Thank you.

  10. #25
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi
    The following now should do what you want.
    Hello Mike, I have added 1 meter more column in this sub form (frmgreyofferdates) due to which again it is giving wrong total offer number.

    The after update event that you placed in the text box of meter is not working properly. When the form is closed again and turned on, the data of frmgreyofferdates gets properly updated. Why is this happening?
    Thank you.
    Attached Files Attached Files

  11. #26
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    As far as I know with my limited skills your subform to display the 7 Dates and the
    associated Totals in the format you need is NOT possible.

    In the updated Totals form You are able to see the Dates for the Week and in the related
    Subform you can only see the Total Meter's for a selected Date.

    This is down to the wrong table structure for this type of process.

    You are creating Multiple New Records for the same Date.

    A Customer will Order Items on a Given date and for that specific date you can have Multiple Order Items.
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  12. #27
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by mike60smart View Post
    Hi
    I am also trying from 2 days. for create a continuous query or sub form by removing the validity of 7 days which has 3 fields offer date, total offer and total meter but I am also not getting success, don't know this is impossible. Or we are not able to find its correct logic.
    Still I am trying harder, maybe I will succeed.
    thank you so much.
    I would like to say one more thing that today Welshgasman needs to hit a sixer.
    Last edited by deepaksharma; 12-12-2023 at 02:43 AM.

  13. #28
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    I'm confused.
    The original sub form I put in, had both the Offers and the meters displayed and a total - what else do you want, and why did that not suit your needs?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  14. #29
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I would like to say one more thing that today Welshgasman needs to hit a sixer.
    What does that mean?
    Just curious.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  15. #30
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    I'm a glutton for punishment - here are the two totals.
    Your coding needs to be more structured and logical. You method for validating data entry is very clunky, but we can have already covered that, so I'm not going to revisit it.

    I have removed a load of redundant code (not all of it by any way!), and indented it properly.
    Attached Files Attached Files
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Coding help!!!!
    By deepaksharma in forum Access
    Replies: 44
    Last Post: 12-03-2023, 05:54 AM
  2. Need Hlp VBA coding
    By yianni in forum Access
    Replies: 15
    Last Post: 10-14-2017, 09:25 AM
  3. pls hlp me fix this bad coding
    By harrie in forum Programming
    Replies: 1
    Last Post: 12-07-2016, 11:23 AM
  4. Need help in VBA coding
    By Kcgp in forum Programming
    Replies: 6
    Last Post: 02-01-2012, 11:22 PM
  5. Bar-Coding
    By texasprincess7 in forum Access
    Replies: 1
    Last Post: 02-12-2009, 10:29 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