Results 1 to 4 of 4
  1. #1
    sai_rlaf is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    44

    Help with Macro Conditions



    Hi. I have created a macro that is on a form embedded on a command button. After they fill out the form and click the button, what I would like to have happen is that form will be sent to the applicable department. The right department is determined by which [Department Help Topic] they choose. Now my problem is that my macro is running true for both sets of criteria when i only want one. An example of my conditions are below.

    [Forms]![Ops Help]![Department Help Topic]="Account Maintenance" Or "Brokerage New Accounts"
    [Forms]![Ops Help]![Department Help Topic]="General Fees" Or "Brokerage Fees"

    These are two different macro lines and if the record that is filled out is with one of the first topics it will go to that department, if the two others it will go to a dfferent. All i have get it to do, is send an email to each department since it's reading both as true. Any help you can provide to make my conditions only look at the record I am submitting for is appreciated!

  2. #2
    sai_rlaf is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    44
    I will also say that with my macro it also places a Now() timestamp in a field. Not sure if that can be leveraged at all but thought i would throw that out there

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    I don't use macros, only VBA. Having hard time visualizing what you are describing. Do you want to provide project for analysis? I don't understand why it will not look at only the current record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    sai_rlaf is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    44
    This one is good. For some reason if i just reference the field and take out the or statements it works as designed. Thanks for the help though!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using iif for Multiple Conditions
    By kwilbur in forum Access
    Replies: 5
    Last Post: 12-30-2011, 01:52 PM
  2. Forms and Conditions
    By jlgray0127 in forum Forms
    Replies: 11
    Last Post: 11-02-2011, 02:55 PM
  3. Sum Column with conditions
    By g8rnc in forum Access
    Replies: 1
    Last Post: 06-10-2010, 09:59 AM
  4. if...then conditions ???
    By em07189 in forum Access
    Replies: 6
    Last Post: 03-05-2010, 10:29 PM
  5. Conditions / Expressions
    By Mark344 in forum Access
    Replies: 1
    Last Post: 02-19-2010, 08:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums