Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jun 2003
    Location
    New Jersey
    Posts
    103
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Display Data for a given condition (Access 2000)

    I need to run a query that compares two fields, Address1 and Address2. If the two fields match then display the records otherwise do not display. Does anyone know how to do this? <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

    Thanks in advance!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Display Data for a given condition (Access 2000)

    Create a query based on the table containing the fields.
    Add the * from the field list to the query design grid.
    Also add Address1 to the design grid; clear the Show check box and enter [Address2] in the criteria line.
    This query will return all records for which Address1 and Address2 are equal and non-empty.

    If you also want to return records for which Address1 and Address2 are both empty:
    Add Address2 to the query design grid; clear its Show check box.
    Enter Is Null in the second criteria line (with heading Or) under both Address1 and Address2.

  3. #3
    2 Star Lounger
    Join Date
    Jun 2003
    Location
    New Jersey
    Posts
    103
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: Display Data for a given condition (Access 2000)

    It worked perfectly, thank you!
    <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •