Results 1 to 2 of 2
  1. #1
    rkm360 is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2009
    Posts
    6

    How to open a form with filter applied?

    Hi, I am a newbie to the programming side. I am sure this is a simple issue but I just can't seem to find the right answer.



    I am creating a fairly basic Contacts database. I have a field named " Account Number" on each of my tables, all related together.

    I have a form of Customer's Information, and I have a Command Button set to open a Contact Form. When the form opens, I need it to be filtered to the Account Number that I am viewing on the main form "Customer's Information"

    Ex: I am viewing XYZ Company's record, with no filter applied, just viewing the record. I want to open the Contacts Form already filtered to show just the records that match the Account Number of the first form.

    I know I should be able to do this easily but I just can't figure it out.

    Any help would be GREATLY appreciated!

    Thanks,
    Robert

  2. #2
    Join Date
    Mar 2009
    Posts
    3
    filter 'ABC' records
    DoCmd.OpenForm "Customer's Information", , , "[Account Number]='ABC'"

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

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. Form Based Query/Filter
    By Micon in forum Access
    Replies: 0
    Last Post: 11-07-2008, 09:25 AM
  3. In a field on a Form, on click open another form
    By jackieagra in forum Programming
    Replies: 1
    Last Post: 03-20-2008, 09:44 AM
  4. Open a table in a From based on a filter
    By turbobeagle in forum Forms
    Replies: 1
    Last Post: 01-11-2008, 12:27 PM
  5. Form will not open
    By dserbanescu in forum Forms
    Replies: 0
    Last Post: 01-09-2008, 09:48 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