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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Question

Status
Not open for further replies.

sha123

Programmer
Nov 13, 2002
58
0
0
ZA
I have a table with a Anonymous field and a region field

In the Anonymous field I have three values = "10" "30" "60".That only apears once in the table/Form.

I need a query that will write a value = "WC" into the region field till it gets to the the "30" value.
Is it possible in any way to do this???


 
hi, you dont say if you want to change for any other values so simplest is...

if anon is numeric then try
Code:
UPDATE TBL_ANON SET TBL_ANON.REGION = "WC"
WHERE TBL_ANON.ANON<30;
else try...
Code:
UPDATE TBL_ANON SET TBL_ANON.REGION = "WC"
WHERE TBL_ANON.ANON='10';
if you want to test logical operators then you could use iif or case (see help files for syntax)

Hope this helps, Jamie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top