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!

Help with update query problems

Status
Not open for further replies.

RJL1

Technical User
Oct 3, 2002
228
0
0
US
I have a table that I need to populate a field based on another field. I need to populate pick_area based on pick_location. My problem is that I have aplha/numeric locations so my pick_location field is set to TEXT. I would like to update my pick_area field like this

if the pick_location is aplha/numeric set pick_area = CAGE
if the pick_location is numeric only set pick_area = BULK

Thanks in advance for any help with this.

Thanks
Ricardo
 
Check out Access help for the IsNumeric function....



A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
Douglas Adams
 
did you try the isnumeric function ?

iif(isnumeric(pick_location)=True,"BULK", "CAGE")

It will return BULK if pick_location is numeric, CAGE else. I suppose if pick_location isn't numeric, it is alphanumeric.

 
I never used the isnumneric function but it worked great. This will help me out in several projects I'm working on.

Thanks
Ricardo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top