Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Simple Update Query

Status
Not open for further replies.

gbs01

MIS
Jun 2, 2003
73
US
I have one table called EDIDB.
It has 2 fields: ISBN & UPC.
Some of the UPC fields are blank.

How do I use the query grid to Update the UPC field with the ISBN when the UPC is null.

Thanks in advance for your help!
jlig

 
UPDATE EDIDB SET UPC = ISBN WHERE UPC Is Null;

If UPC may be blank or empty or Null, the slower version:
UPDATE EDIDB SET UPC = ISBN WHERE Trim(UPC & "") = "";

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks to PHV!

You make it seem so easy....
jlig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top