Connecting Tech Pros Worldwide Help | Site Map

Select names begining w/same ltr in query

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:52 PM
Minitman
Guest
 
Posts: n/a
Default Select names begining w/same ltr in query


I have an address database and I want to have the query prompt for me to
enter an expression that will bring up ALL names begining with same
first ltr for individual page on my report. I am familiar with prompt
[Print first letter] in query design but it doesn't bring up all A's or
B's individually. If I type in complete name it brings them up.
If I go in query design and say "B*" it works fine. But I want to be
able to do it on the [ ]prompt.
Thanks for assist
Dick B.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #2  
Old November 12th, 2005, 06:52 PM
Bas Cost Budde
Guest
 
Posts: n/a
Default Re: Select names begining w/same ltr in query

Minitman wrote:
[color=blue]
> I have an address database and I want to have the query prompt for me to
> enter an expression that will bring up ALL names begining with same
> first ltr for individual page on my report. I am familiar with prompt
> [Print first letter] in query design but it doesn't bring up all A's or
> B's individually. If I type in complete name it brings them up.
> If I go in query design and say "B*" it works fine. But I want to be
> able to do it on the [ ]prompt.[/color]

put Like before your prompt expression in the query designer.

Like [Print first letter]

--
Bas Cost Budde
http://www.heuveltop.nl/BasCB

  #3  
Old November 12th, 2005, 06:52 PM
fredg@example.invalid
Guest
 
Posts: n/a
Default Re: Select names begining w/same ltr in query

On 03 Feb 2004 22:09:16 GMT, Minitman <dick@briggs.cc> wrote:
[color=blue]
>
>I have an address database and I want to have the query prompt for me to
>enter an expression that will bring up ALL names begining with same
>first ltr for individual page on my report. I am familiar with prompt
>[Print first letter] in query design but it doesn't bring up all A's or
>B's individually. If I type in complete name it brings them up.
>If I go in query design and say "B*" it works fine. But I want to be
>able to do it on the [ ]prompt.
>Thanks for assist
>Dick B.
>
>*** Sent via Developersdex http://www.developersdex.com ***
>Don't just participate in USENET...get rewarded for it![/color]

Like [Enter First Letter] & "*"
--
Fred
Please respond only to this newsgroup.
I do not reply to personal email
  #4  
Old November 12th, 2005, 06:53 PM
Minitman
Guest
 
Posts: n/a
Default Re: Select names begining w/same ltr in query


Thanks very much for the info. It worked perfect and appreciate your
time.
Dick B.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #5  
Old November 12th, 2005, 06:56 PM
Minitman
Guest
 
Posts: n/a
Default Re: Select names begining w/same ltr in query

With the following query procedure from you people - Like[Enter first
letter of last name]&"*" - I thought I was home free. Not quite. When I
run the query by itself for an alpha list for names starting with same
first letter in a last name it works perfect. However when I use the
query as a RECORD SOURCE for my report it doesn't work perfect. In the
case of more than one person with the same last name I only get the
first name and loose the rest??
Thanks again for the assist,
Dick B.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.