Re: Query part of string
From: John Vinson (jvinson_at_STOP_SPAM.WysardOfInfo.com)
Date: 09/27/04
- Next message: Rick B: "Re: query not working-urgent"
- Previous message: John Vinson: "Re: Addition in a Access 97 query"
- In reply to: Mary: "Query part of string"
- Next in thread: Mary: "Re: Query part of string"
- Reply: Mary: "Re: Query part of string"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 15:13:54 -0600
On Mon, 27 Sep 2004 12:07:41 -0700, "Mary"
<anonymous@discussions.microsoft.com> wrote:
>Hello, I need to pull part of a field in a query. The
>field could have several notes, I only need to see then
>notes beginning with "Customer" on. That is the starting
>point I need to see without pulling anything that comes
>before that word. Is this possible?
>
>Thanks!
You're paying the penalty for improper table design! Fields should be
"atomic", having only one meaning. It's much easier to concatenate
multiple values into a paragraph than vice versa.
But if you have a memo field named [Notes] and you want to see
whatever comes after the first instance of the word Customer, you can
use
NewName: Mid([Notes], InStr([Notes], "Customer") + 9)
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
- Next message: Rick B: "Re: query not working-urgent"
- Previous message: John Vinson: "Re: Addition in a Access 97 query"
- In reply to: Mary: "Query part of string"
- Next in thread: Mary: "Re: Query part of string"
- Reply: Mary: "Re: Query part of string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|