Results 1 to 2 of 2
  1. #1
    lorenambrose is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    6

    Help with button macro

    I have a button set up using the button wizzard that opens another form of the same record. So if you are on form A record 8 and hit the button it opens form B record 8.

    This is the condition that access 2007 has:


    Code:


    ="[PNCR Number]=" & [PNCR #]
    Problem is that if someone hits the button when form A says record "(NEW)" you get a syntax error.

    Is there a way to have the macro look at the record # [PNCR Number] and only work if the field is 1 or higher

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

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

Similar Threads

  1. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  2. AddFromOutlook Macro button
    By fiona79us in forum Access
    Replies: 0
    Last Post: 06-07-2010, 02:34 PM
  3. Help Require (Macro Save button )?????
    By aligahk06 in forum Access
    Replies: 1
    Last Post: 04-18-2010, 08:38 AM
  4. Macro Button to Sort Field A-Z
    By rdirosato in forum Access
    Replies: 1
    Last Post: 03-11-2010, 10:32 PM
  5. Replies: 3
    Last Post: 10-16-2009, 07:54 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