Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2025
    Posts
    20

    Formule : calcule les jours ecouler entre deux dates

    Bonjour , Si c'est bien la bonne façon de proceder ?

    Attachment 52815

    je veux afficher le nombre de jours avec la commande DateDiff (intervalle, date1, date2 [, firstdayofweek] [, firstweekofyear] )
    dans mon formulaire : dans le champs validitéforfait - date de début et date de fin et en fonction des jours passés

    exemple si 1 semaine 05/03/25 - 11-03/25 = 7 jours , et si je regarde le 07/03 = reste 5 jours ...

    Attachment 52816Attachment 52816



    Merci d'avance et bonne journee
    Cordialement

  2. #2
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    you can use the Formula in a Query:
    Attached Files Attached Files

  3. #3
    Join Date
    Mar 2025
    Posts
    20

    Formule

    Bonjour
    Merci de votre aide et votre fichier !
    je me permais de revenir vers vous si cela vous derange pas .
    je voulais savoir le le nombre de jour forfait utiliser . le but rechercher ,c'est de savoir combien j'ai de voiture dans mon parking actuel
    je voudrais afficher dans un nouveau formulaire stats :

    combien de forfait 1 semaine actif
    combien de forfait 2 semaine actif
    combien de forfait 3 semaine actif

    si vous m avez compris bien sur . en resumer

    j'ai vendu 20 forfait depuis le 01/1/2025 - 10 forfait son actif a ce jour .

    Merci de votre temps

    Cordialement Attachment 52818

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi Christophe

    It would help if you enter data for the Cars, Make & Model which each Customer has.

    See the Form that opens at Startup.

    You can then use this data when you take a Booking for a specific Customer.
    Attached Files Attached Files

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi
    You can get the following display using a Crosstab query.
    Attached Thumbnails Attached Thumbnails Crosstab.png  

  6. #6
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    you may also see this.
    open query qryActiveCars.

    i added a sample "stats" on Form frmCustomers (Customer's Booking).
    Attached Files Attached Files

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

Similar Threads

  1. Formule de calcule
    By christophe03200 in forum Database Design
    Replies: 18
    Last Post: 03-04-2025, 06:31 AM
  2. Basic Design Question - Part Deux
    By bigal.nz in forum Access
    Replies: 10
    Last Post: 06-07-2016, 12:47 PM
  3. Replies: 2
    Last Post: 09-08-2015, 11:42 AM
  4. Replies: 18
    Last Post: 03-13-2015, 04:14 AM
  5. Formule access
    By youba14 in forum Access
    Replies: 6
    Last Post: 05-03-2014, 12:13 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