Results 1 to 5 of 5
  1. #1
    frcastro is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    13

    conditional macro action

    Hello,



    I want a macro i have to do a certain action only if a conduction is matched.

    i have something like in condition field

    [imprimirpressão].[Pres Lida] Is Not Null

    it shows me an error.

    How can i make it work in macros?

    Thanks!

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Try:

    suppose if the Value of Field EmployeeId is Not Null on Form Main_Form I want a action

    If Not IsNull(Me.EmployeeId) Then
    Your Code Here

    if You want to enter the full reference then:
    if Not IsNull(Forms!Main_Form!EmployeeID) then
    Your Code here

  3. #3
    frcastro is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    13
    its a table not a form!


    still possible?

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    this is an expression that is being used in a query:
    If Field a is Not Null "OK" is Displayed and if it is Null the "No" is Displayed


    IIf(Not IsNull([Table1].[a]),"OK","NO")

  5. #5
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    were you able to solve your problem.

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

Similar Threads

  1. The command or action Quit isn't available
    By Macallan60 in forum Access
    Replies: 0
    Last Post: 04-26-2010, 09:59 AM
  2. Replies: 1
    Last Post: 03-10-2010, 04:53 AM
  3. No action button
    By dlewicki in forum Forms
    Replies: 6
    Last Post: 12-02-2009, 12:58 PM
  4. OpenForm Action and Arguments
    By nkenney in forum Forms
    Replies: 9
    Last Post: 04-05-2009, 09:33 AM
  5. StopMacros action in 2007
    By jcmartell in forum Programming
    Replies: 0
    Last Post: 04-25-2007, 09:04 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