Query problem

Hi experts,
I have a query question.  I have a database for employee time attendance.  I have a field call "Leave" for VL(vacation leave), SL(sick Leave) such.   sometimes employee would like to take half day of sick to vacation.  so we store in the table as VL, SL, 1/2 SL pm, 1/2 VL am, AWOP etc.  I would like to have a query to pull all employees leave by date but only show 1/2 am or 1/2 pm instead 1/2 SL PM or 1/2 VL am.  is this possible?
The pm, it store under the field Time not under the field Leave.  so it combine with Leave & Time for VL, 1/2 VL Am like that

here is my query but it shows all not part of them
Expr1: [Leave] & " " & [Time]  -  result is 1/2 VL am, 1/2 SL PM
Expr2: Left(Trim([Leave]),Len(Trim([Leave])))  it came out same result as the Expr1

Thanks
urjudoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PatHartmanCommented:
The problem is caused by storing multiple pieces of information in a single field.  Do you really allow people to only us vacation in 1/2 day increments?  Does it really matter whether the time is am or pm?

Try this?
Expr1: Left([Leave],3) & " " & [Time]

Assuming your WHERE clause only selectsthe 1/2 SL and 1/2 VL values, you can just show the first three characters.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
urjudoAuthor Commented:
Thanks.
0
PatHartmanCommented:
You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.