EzGoingKev
Registered User.
- Local time
- Today, 10:31
- Joined
- Nov 8, 2019
- Messages
- 198
I have two tables.
Table1 is updated once a month. I have added a date field named "last_pull". I am attempting to populated that field with data from Table2.
Table2 has two fields - an autonumbered "ID" field and a "pulled" field. The pulled field is a record of all Table1's update dates. The most current date will have the highest ID value. Example of the data in the table:
ID Pulled
1 05/13/2021
2 06/18/2021
3 07/15/2021
In the example above I want to populate Table1's "last_pull" field with 06/18/2021 date that is tied to ID number 2.
I have tried a few iterations of this:
UPDATE Table1 SET last_pull = (SELECT pulled from Table2 WHERE ID = DMax("ID","Table")-1)
And I keep getting the "Operation must use an updateable query" error message.
Table1 is updated once a month. I have added a date field named "last_pull". I am attempting to populated that field with data from Table2.
Table2 has two fields - an autonumbered "ID" field and a "pulled" field. The pulled field is a record of all Table1's update dates. The most current date will have the highest ID value. Example of the data in the table:
ID Pulled
1 05/13/2021
2 06/18/2021
3 07/15/2021
In the example above I want to populate Table1's "last_pull" field with 06/18/2021 date that is tied to ID number 2.
I have tried a few iterations of this:
UPDATE Table1 SET last_pull = (SELECT pulled from Table2 WHERE ID = DMax("ID","Table")-1)
And I keep getting the "Operation must use an updateable query" error message.