|
-
Jan 23rd, 2006, 11:49 AM
#1
Thread Starter
Addicted Member
Access Query: Field Code Help
Here are examples of my field data.
MARTIN SMITH/1880681/ITD/FED
JACK JACKSON
and I also have null values
When I do my make table query I need it to do the following.
If Null (or blank) put in the word "NONE"
Otherwise all I need are the first and last name.
Here is what I have so far but errors due to some names not having the "/" in them.
TeamManager:If(IsNull([gWEBFollowUpResponsibility]),"NONE",Left([gWEBFollowUpResponsibility],InStr([gWEBFollowUpResponsibility],"/")-1)
Thanks for any help
Garrett
-
Jan 23rd, 2006, 12:12 PM
#2
Re: Access Query: Field Code Help
In that case try using an extra If, eg:
If(IsNull([gWEBFollowUpResponsibility]),"NONE",If(InStr([gWEBFollowUpResponsibility],"/")>0,Left([gWEBFollowUpResponsibility],InStr([gWEBFollowUpResponsibility],"/")-1))
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|