P
Pete Provencher
Using Access 2000:
I'm trying to convert some business owner names [owner] from one format to
another:
Smith, John A to John A Smith
I use the follwing to accomplish this task:
Owner1: Mid([owner],InStr([owner],",")+1) & " " &
Left([owner],InStr([owner],",")-1)
This works well except when I run into this problem:
CompUSA error
I need to write an iif statement that will use what's in the field if there
are no commas.
I tried this and it doesn't work:
Owner1: IIF(InStr([owner], ",")=0,[owner], Mid([owner],InStr([owner],",")+1)
& " " & Left([owner],InStr([owner],",")-1)
Can anyone help with tis problem. It sure would be appreciated.
Pete Provencher
I'm trying to convert some business owner names [owner] from one format to
another:
Smith, John A to John A Smith
I use the follwing to accomplish this task:
Owner1: Mid([owner],InStr([owner],",")+1) & " " &
Left([owner],InStr([owner],",")-1)
This works well except when I run into this problem:
CompUSA error
I need to write an iif statement that will use what's in the field if there
are no commas.
I tried this and it doesn't work:
Owner1: IIF(InStr([owner], ",")=0,[owner], Mid([owner],InStr([owner],",")+1)
& " " & Left([owner],InStr([owner],",")-1)
Can anyone help with tis problem. It sure would be appreciated.
Pete Provencher