I am relatively new to Access and I want to make an update query that will fill blank records of a field with the corresponded value based on another field.
Let me give an example to understand what I mean.
Table:
ID COLOR
0025 black
0036 white
0074 red
0025 "blank"
0025 "blank"
0036 "blank"
If I enter in “ID” field the same value as above, see “0025 & 0036” I want the expected result to be:
Table:
ID COLOR
0025 black
0036 white
0074 red
0025 black
0025 black
0036 white
I tried to do this with the following:
DLookUp("COLOR";"table name";"ID=" & [ID])
But sometimes it fills blank records with values and sometimes it turns records with values to blanks.
How can I ensure that only blank records will be field and not the other way around?
Any help will be much appreciated.
Thanks.
Let me give an example to understand what I mean.
Table:
ID COLOR
0025 black
0036 white
0074 red
0025 "blank"
0025 "blank"
0036 "blank"
If I enter in “ID” field the same value as above, see “0025 & 0036” I want the expected result to be:
Table:
ID COLOR
0025 black
0036 white
0074 red
0025 black
0025 black
0036 white
I tried to do this with the following:
DLookUp("COLOR";"table name";"ID=" & [ID])
But sometimes it fills blank records with values and sometimes it turns records with values to blanks.
How can I ensure that only blank records will be field and not the other way around?
Any help will be much appreciated.
Thanks.
Last edited: