HitechUser
Programmer
I've searched for a solution, but I am unable to find one with enough detail. I hope someonce can help. I may be pushing my luck since I was fortunate to have another question answered last week. Anyway... here's a sample of my data (Using Access 2000):
Tables before
tblPartsMaster
PARTID User Date Vendor Location
CV0001 1695 10/14/2003 Intel Bin1
CV0002 1695 10/15/2003 AMD Bin2
CV0003 1695 xx/xx/xxxx Dell xxxx
DX0001 1696 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0002 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
tblPartsUpdate
PARTID User Date Vendor Location
CV0001 10/31/2004 AMD ""
CV0002 1695 AMD " "
Table after
tblPartsMaster
PARTID User Date Vendor Location
CV0001 1695 10/31/2004 AMD Bin1
CV0002 1695 10/15/2003 AMD Bin2
...
Can an Update Query be created to ONLY update the columns where the IS a valid value in "tblPartsUpdate"? I do not want to change the "tblPartMaster" column's value if the "tblPartsUpdate" column has one of the following.
1. - NULL
2. - "" (zero length)
3. - " " (one or more blanks)
Basicaly I need to update each row's columns if a valid value (any value) is present.
If this can not be done with an update query can someone please provide some VB code to perform the same result.
Thanks so much.
Tables before
tblPartsMaster
PARTID User Date Vendor Location
CV0001 1695 10/14/2003 Intel Bin1
CV0002 1695 10/15/2003 AMD Bin2
CV0003 1695 xx/xx/xxxx Dell xxxx
DX0001 1696 xx/xx/xxxx xxxx xxxx
DX0002 1697 xx/xx/xxxx xxxx xxxx
FX0001 1697 xx/xx/xxxx xxxx xxxx
GX0002 1697 xx/xx/xxxx xxxx xxxx
GX0003 1697 xx/xx/xxxx xxxx xxxx
tblPartsUpdate
PARTID User Date Vendor Location
CV0001 10/31/2004 AMD ""
CV0002 1695 AMD " "
Table after
tblPartsMaster
PARTID User Date Vendor Location
CV0001 1695 10/31/2004 AMD Bin1
CV0002 1695 10/15/2003 AMD Bin2
...
Can an Update Query be created to ONLY update the columns where the IS a valid value in "tblPartsUpdate"? I do not want to change the "tblPartMaster" column's value if the "tblPartsUpdate" column has one of the following.
1. - NULL
2. - "" (zero length)
3. - " " (one or more blanks)
Basicaly I need to update each row's columns if a valid value (any value) is present.
If this can not be done with an update query can someone please provide some VB code to perform the same result.
Thanks so much.