Results 1 to 2 of 2
  1. #1
    TxTcher is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    9

    Adding Filter Using Macro

    I have designed a penalty/payment tracking db.

    One table contains "referral" info which includes the penalty amt and fee amt (I use a txt box on the form to calculate the total b/t these two amts)
    Another table contains "payment" info which consists of monthly payments consisting of 2 fields - applied penalty amt and applied fee amt.

    The form is designed using the Referral table with a Payments subform. I've added text boxes that total the Total Judgment = (Penalty + Fee), total Payment = (Applied Penalty + Applied Fee) and Remaining Balance = (Total Judgment - Total Payment)

    I'd like to filter the form using 3 values: All; Paid in Full; and Balance Due.
    I've added the combo box with these list values and am now struggling with the macro event.

    The first part was easy:

    Condition: [Forms]![Referrals]![Filter]="All"
    Action: ShowAllRecords

    What I'm having trouble with is the "Paid in Full" and "Balance Due" conditions of the macro

    When I put in:
    Condition: [Forms]!]Referrals]![Filter]="Paid in Full"


    Action: Applyfilter: [Forms]![Referrals]![Remaining Balance]=0

    I get no records (I only have 3 recs in the Referrals table at the moment, but I know that at least one of them has a paid in full balance.

    Can someone help me with the "Paid in Full" and "Balance Due" filters? Thanks in advance.

  2. #2
    qa12dx is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    india
    Posts
    112
    if how u ve written ur queries and everything is ok then try the requery command after apply filter.

    or post example here to us to examine

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

Similar Threads

  1. Run Embedded Macro
    By smikkelsen in forum Forms
    Replies: 0
    Last Post: 07-07-2010, 09:44 PM
  2. Need help with macro
    By abc123 in forum Programming
    Replies: 6
    Last Post: 06-13-2010, 12:34 AM
  3. MACRO help please
    By DianeG in forum Forms
    Replies: 2
    Last Post: 04-20-2010, 07:19 AM
  4. error in macro
    By nawaray in forum Access
    Replies: 0
    Last Post: 02-10-2009, 12:06 PM
  5. Macro for Indexed Value
    By jversiz in forum Access
    Replies: 0
    Last Post: 10-19-2007, 01: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