R
Remi
Hi,
I have 1 table "Dispatch" with 3 fields:
A.DispatchID (autonumber; primary key),
B.ProductionbatchID (number; combobox coming from another table),
C.ProductionbatchIDBackup (with no value so far)
I am trying to create an update query that would poplulate the field C based
on B.
First, I have created a select query "ProdBatchIDNotBackedUp" based on the
table "Dispatch" in order to list all data in C that are blank or nil. It
produces the following fields:
1.DispatchID
2.ProductionbatchID (i.e. those that are not yet populated in field C table
"Dispatch").
Second I have created an update query, which contains the table "Dispatch"
and the select query "ProdBatchIDNotBackedUp" with an inner join between the
Dispatch.DispatchID and ProdBatchIDNotBackedUp.DispatchID
The goal of this update query is to:
UPDATE (table) Dispatches
SET (field) Dispatches.ProductionBatchBackUp = the ProductionbatchID from
select query ProdBatchIDNotBackedUp.
I have tried to insert a DLOOKUP in the SET section but I am getting it
right.
Does someone has a solution? Thanks
I have 1 table "Dispatch" with 3 fields:
A.DispatchID (autonumber; primary key),
B.ProductionbatchID (number; combobox coming from another table),
C.ProductionbatchIDBackup (with no value so far)
I am trying to create an update query that would poplulate the field C based
on B.
First, I have created a select query "ProdBatchIDNotBackedUp" based on the
table "Dispatch" in order to list all data in C that are blank or nil. It
produces the following fields:
1.DispatchID
2.ProductionbatchID (i.e. those that are not yet populated in field C table
"Dispatch").
Second I have created an update query, which contains the table "Dispatch"
and the select query "ProdBatchIDNotBackedUp" with an inner join between the
Dispatch.DispatchID and ProdBatchIDNotBackedUp.DispatchID
The goal of this update query is to:
UPDATE (table) Dispatches
SET (field) Dispatches.ProductionBatchBackUp = the ProductionbatchID from
select query ProdBatchIDNotBackedUp.
I have tried to insert a DLOOKUP in the SET section but I am getting it
right.
Does someone has a solution? Thanks