• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

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

0
Seamus2626
Asked:
Seamus2626
1 Solution
 
mbizupCommented:
You're close...


If word = "x" or word= "y" then
'etc
0
 
Seamus2626Author Commented:
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now