Results 1 to 9 of 9
  1. #1
    agelo12 is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2024
    Location
    Greece
    Posts
    9

    Write value to table from another table

    Hello!


    I want to automatically write the value from the table tbl_Equipment in the field hours in the table tbl_Characteristic in the hours the same column.

    Click image for larger version. 

Name:	Screenshot 2024-12-22 123217.png 
Views:	17 
Size:	24.6 KB 
ID:	52517


    Thank you in advance!

  2. #2
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    299
    Why do you want to store the same value twice? Usually that is a bad idea.
    Groeten,

    Peter

  3. #3
    agelo12 is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2024
    Location
    Greece
    Posts
    9
    Thanks for the reply!
    Because I will need to calculate the next service.

    Click image for larger version. 

Name:	Screenshot 2024-12-22 135521.png 
Views:	17 
Size:	17.3 KB 
ID:	52518

    Thank you in advance!

  4. #4
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    299
    You find the hours in the parent record. There is no need to store the hours in every child record. Make a query joining the two tables and make the calculation. There is no need to store the result. You can show it in the query.
    Groeten,

    Peter

  5. #5
    agelo12 is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2024
    Location
    Greece
    Posts
    9
    I can't find it unfortunately, can you help?

    Database_22_12_24_1.zip

    Click image for larger version. 

Name:	Screenshot 2024-12-22 173347.png 
Views:	16 
Size:	23.7 KB 
ID:	52523

  6. #6
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    299
    I will look at it later today
    Groeten,

    Peter

  7. #7
    agelo12 is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2024
    Location
    Greece
    Posts
    9
    Thanks you!

  8. #8
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    299
    Please look at my example. If you have any questions about it, feel free to ask them.
    Attached Files Attached Files
    Groeten,

    Peter

  9. #9
    agelo12 is offline Novice
    Windows 11 Access 2016
    Join Date
    Dec 2024
    Location
    Greece
    Posts
    9
    Amazing job, xps35!
    Thank you for your time!

    Best regards!

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

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2021, 05:45 PM
  2. Replies: 1
    Last Post: 04-25-2017, 11:40 AM
  3. Replies: 7
    Last Post: 05-08-2013, 11:16 AM
  4. VBA: Read table & write values to another table
    By compooper in forum Programming
    Replies: 6
    Last Post: 07-29-2011, 11:19 AM
  5. Replies: 3
    Last Post: 02-01-2011, 07:15 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