Query criteria...

1

116

I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
1

116

Thanks you, but that displays the 9 characters to the right. I wish to strip
them when the query runs.

David

Golfinray said:
Try right([yourfield],9)

116 said:
I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
D

Douglas J. Steele

Semantics! <g>

To some people, saying "strip off the right 9 characters" means "only
display the right 9 characters". Obviously to you it means "display
everything except the right 9 characters".

That would be

Left([yourfield], Len([yourfield]) - 9)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


116 said:
Thanks you, but that displays the 9 characters to the right. I wish to
strip
them when the query runs.

David

Golfinray said:
Try right([yourfield],9)

116 said:
I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
1

116

Thanks Doug. I see my mistake.

David

Douglas J. Steele said:
Semantics! <g>

To some people, saying "strip off the right 9 characters" means "only
display the right 9 characters". Obviously to you it means "display
everything except the right 9 characters".

That would be

Left([yourfield], Len([yourfield]) - 9)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


116 said:
Thanks you, but that displays the 9 characters to the right. I wish to
strip
them when the query runs.

David

Golfinray said:
Try right([yourfield],9)

:

I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
1

116

Thanks Doug. I see my mistake.

David

Douglas J. Steele said:
Semantics! <g>

To some people, saying "strip off the right 9 characters" means "only
display the right 9 characters". Obviously to you it means "display
everything except the right 9 characters".

That would be

Left([yourfield], Len([yourfield]) - 9)

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


116 said:
Thanks you, but that displays the 9 characters to the right. I wish to
strip
them when the query runs.

David

Golfinray said:
Try right([yourfield],9)

:

I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
W

wj

116 said:
I have a name field that is random in length. I have been trying to
configure LEN, RIGHT, LEFT with no luck trying to strip the right 9
characters which are the same on every value. Any assistance would be
greatly appreciated.

Thanks
David
 
Top