Solved

MS Access 2010 SQL Query question

Posted on 2011-03-08
2
263 Views
Last Modified: 2012-06-21
Hi -

I have the below query but I want it to return just the analyst name that starts with whatever characters are put in as the parameter (for example 'joh' but I can't seem to get it to come to fruition

The below sysntax returns everything that contains whatever the parameter was.....


Thanks for any help



SELECT *
FROM QTab
WHERE analyst Like '*' & [Enter Analyst here];
0
Comment
Question by:rinkydink
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 35076709
you have the "*" at the wrong side of the parameter



SELECT *
FROM QTab
WHERE analyst Like [Enter Analyst here] & "*"
0
 
LVL 1

Author Comment

by:rinkydink
ID: 35076770
Boy I feel like a dummy now LOL

That was brain dead to the extreme on my part

Thanks

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now