Forum Discussion

Badger51's avatar
Badger51
Copper Contributor
Feb 12, 2024

Access 365 Query

I am using Access 365 on Windows 10 PC.  My database is in Access 2016 format.

 

I haven't used Access in some time and am perplexed by my difficulty in successfully designing a query.

 

I have a list of members of a legislature. One of the fields is office type; the choices are Legislative Office, Constituency Office or Ministry Office.

 

I have tried multiple options in my Simple Query to obtain a list of Legislative offices.

No matter what I've tried, I get  blank results with a syntax error message.

 

Among my attempts where "Legislative", "Legislative Office" and "not C"

 

None have been successful.

 

Screenshots attached show table format, query design view and syntax error.

 

Please point me in the right direction.

 

Thanks in advance

   

  • Criteria would be "Legislative Office" or for partial match LIKE '*Legislative*'. Attach a sample db for further clarification. You may also share db via OneDrive and then share a link downloadable file.
  • Harun24HR's avatar
    Harun24HR
    Bronze Contributor
    Criteria would be "Legislative Office" or for partial match LIKE '*Legislative*'. Attach a sample db for further clarification. You may also share db via OneDrive and then share a link downloadable file.
    • Badger51's avatar
      Badger51
      Copper Contributor

      Harun24HR 

       

      Thanks, that worked.....

       

      Always looking for a shortcut !!

       

      I tried "legislative" but not like "legislative !

       

  • George_Hepworth's avatar
    George_Hepworth
    Silver Contributor
    Is that a Lookup Field? If so, you must filter on the Foreign Key field, not the description field.

Resources