Results 1 to 2 of 2
  1. #1
    gemadan96 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    110

    Web Database macro to open a form only if a condition applies

    I'm working with the Contact Web Database. I've modified the NameCard form to add a type to the comments table when the save button is clicked. That works fine. The user is limited to four choices for the type (Call, E-mail, Text, and Visit).



    What I'm trying to do now is that when Save is clicked if the Type (control named cmbCommType) equals Visit a form will open prompting the user for additional data regarding their travel.

    If I just put an OpenForm command in the macro for the Save button it open with no problem. If I put in an If Action "If [cmbCommType]="Visit" Then, OpenForm..." it adds the comment but doesn't open the travel form.

    Any suggestions to resolve this are appreciated.

  2. #2
    mildredrodriguez is offline Novice
    Windows Vista Access 2003
    Join Date
    Jul 2014
    Posts
    1
    I want a msg box to appear if a date which falls on a Sunday. ... You can easily add conditions to your macros.

    ONLINE CASINO AUSTRALIA
    Last edited by mildredrodriguez; 07-03-2014 at 07:32 AM.

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

Similar Threads

  1. docmd.open form between dates condition
    By Ruegen in forum Programming
    Replies: 6
    Last Post: 09-22-2013, 11:23 PM
  2. IF condition in a Macro on my form
    By Steven.Allman in forum Macros
    Replies: 1
    Last Post: 08-02-2013, 06:04 AM
  3. Replies: 3
    Last Post: 06-20-2013, 08:57 AM
  4. Button to open form with a Where condition
    By Newbie2 in forum Forms
    Replies: 3
    Last Post: 08-07-2012, 01:19 AM
  5. Open Report or Form depending on condition
    By jheintz57 in forum Forms
    Replies: 5
    Last Post: 03-12-2010, 08:16 PM

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