select case statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i write this statement in a Query in MS-access " but my question " how can
write and change this statement to ( select case statement ) ........??
--------------------------------------------------------------------------------------------
SELECT Impsizetable.size
FROM Impsizetable
WHERE (((Impsizetable.size) Like "FCL*" Or (Impsizetable.size) Like "par*")
AND (([CurrentUser]) In ("Farid","sukkar"))) OR (((Impsizetable.size) Like
"LCL*") AND (([CurrentUser])="Admin")) OR (((Impsizetable.size) Like "* *")
AND (([CurrentUser])="test"))
WITH OWNERACCESS OPTION;
---------------------------------------------------------------------------------------------
 
Dear Farid:

Are you coding for Jet or MSDE here?

Why do you want to do this with a select case? Is this a syntax with which
you're familiar from somewhere else?

I don't see readily where a select case would fit into this. The only logic
is in the WHERE clause here. Is that what you want to rewrite? And why?

Tom Ellison
 
thank you very much to help me ...
i will tell you that my query is good working ..
but my question to you to change the query to
select case statement ... because i want to do
"Combo Box" and i put "event"
and i add the "select case statement" to the combo box when
i open it
"as a query i do" >>>
thank you for help me again ...





Tom Ellison said:
Dear Farid:

Are you coding for Jet or MSDE here?

Why do you want to do this with a select case? Is this a syntax with which
you're familiar from somewhere else?

I don't see readily where a select case would fit into this. The only logic
is in the WHERE clause here. Is that what you want to rewrite? And why?

Tom Ellison


Farid Sukkar said:
i write this statement in a Query in MS-access " but my question " how can
write and change this statement to ( select case statement ) ........??
--------------------------------------------------------------------------------------------
SELECT Impsizetable.size
FROM Impsizetable
WHERE (((Impsizetable.size) Like "FCL*" Or (Impsizetable.size) Like
"par*")
AND (([CurrentUser]) In ("Farid","sukkar"))) OR (((Impsizetable.size) Like
"LCL*") AND (([CurrentUser])="Admin")) OR (((Impsizetable.size) Like "*
*")
AND (([CurrentUser])="test"))
WITH OWNERACCESS OPTION;
---------------------------------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top