Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Amend IF ACCESS

Hi,

I have some code where i need an IF OR added

So i want to add several passwords.

e.g IF word = "Jupiter4" OR IF word = "xyz" etc etc

What is the correct syntax?

Thanks


    If word = "Jupiter4" Then                   'password
    passworde = True
    DoCmd.Close
    DoCmd.RunMacro "autoexec.procedures" 'optional procedures

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Seamus2626

ASKER

Thanks!