I have the table set up like this.
tblA
ID(pk) fld1 fld2 fld3
1 1 1 3
2 1 2
3 1 3
4 2 1 4
5 2 2
6 3 1 2
7 3 2
8 3 3
9 3 4
The fld3 value is always in the record where fld2=1.
With a single query, I would like to complete the fld3 fields, so the table would look like this.
ID(pk) fld1 fld2 fld3
1 1 1 3
2 1 2
3 1 3
4 2 1 4
5 2 2 4
6 3 1 2
7 3 2
8 3 3
9 3 4
I think I need a qryA something like this
SELECT DISTINCTROW tblA.fld1,tblA.fld2,tblA.fld3
FROM tblA
WHERE tblA.fld1=2 (selected from a form)
to return the records for all the fld1,fld2, and fld3 values for a selected fld1 value.
ID(pk) fld1 fld2 fld3
4 2 1 4
5 2 2 4
and then an UPDATE qryB to Update the fld3 values.
Is there there a way I can do both queries together?
Thanks,
Brian
tblA
ID(pk) fld1 fld2 fld3
1 1 1 3
2 1 2
3 1 3
4 2 1 4
5 2 2
6 3 1 2
7 3 2
8 3 3
9 3 4
The fld3 value is always in the record where fld2=1.
With a single query, I would like to complete the fld3 fields, so the table would look like this.
ID(pk) fld1 fld2 fld3
1 1 1 3
2 1 2
3 1 3
4 2 1 4
5 2 2 4
6 3 1 2
7 3 2
8 3 3
9 3 4
I think I need a qryA something like this
SELECT DISTINCTROW tblA.fld1,tblA.fld2,tblA.fld3
FROM tblA
WHERE tblA.fld1=2 (selected from a form)
to return the records for all the fld1,fld2, and fld3 values for a selected fld1 value.
ID(pk) fld1 fld2 fld3
4 2 1 4
5 2 2 4
and then an UPDATE qryB to Update the fld3 values.
Is there there a way I can do both queries together?
Thanks,
Brian