Insert 'Like' Parameter In MS Access VB Variable

I have the following VB Code in an Event.  I need to have the PARM_GRP_MBR_ORG_LEVEL_CD  field to contain either an actual value to select records with a specific value or a value (e.g. a Like phrase) to select all values.

How do I do it?  I can't seem to put the 'Like' Phrase within the Parameter Variable.
The following method doesn't extract any records.
[PARM_GRP_ORG_LEVEL_CD_061] = "Like " & "*"""

The following method extracts records.
[PARM_GRP_ORG_LEVEL_CD_061] = "000"

              "HOME_EMAIL_1, HOME_EMAIL_2, WORK_EMAIL_1 " & _
              "FROM 40_EVENT_MEMBER_MSTR " & _
"WHERE PERIOD_EVENT_GRP_REG_KEY = " & Chr$(34) & PARM_GRP_PERIOD_EVENT_GRP_REG_KEY_101 & Chr$(34) & "And " & _
              "PERIOD_EVENT_ORG_LEVEL_KEY = " & Chr$(34) & PARM_GRP_ORG_LEVEL_CD_061& Chr$(34)
Bob C.
Bob CollisonSystem ArchitectAsked:
Who is Participating?

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

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.

Rey Obrero (Capricorn1)Commented:
you can NOT use an expression with Like and "=" equal sign, it is either Like or = or >= or <= or <>


[PARM_GRP_ORG_LEVEL_CD_061]  Like "*"

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
Bob CollisonSystem ArchitectAuthor Commented:
Hi Rey,

I can't believe I was so dumb no to realize that it was the Condition Operator that needed changing.

The following syntax works correctly.
                                       "PERIOD_EVENT_ORG_LEVEL_KEY, GROUP_LONG_NAME, " & _
                                       "GROUP_EMAIL_1, GROUP_EMAIL_2, GROUP_CONTACT_1_EMAIL_1, GROUP_CONTACT_1_EMAIL_2, GROUP_PRE_REG_CONTACT_EMAIL_1 " & _
                                       "FROM 40_EVENT_GROUP_MSTR " & _
                                       "WHERE PERIOD_EVENT_ORG_LEVEL_KEY Like " & Chr$(34) & PARM_GRP_ORG_LEVEL_CD_061 & Chr$(34) & "And " & _
                                              "PERIOD_EVENT_KEY = " & Chr$(34) & PARM_PERIOD_EVENT_KEY_101 & Chr$(34)

Bob C.
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
Microsoft Access

From novice to tech pro — start learning today.