SOLVED

Access 365 Query

Copper Contributor

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

Office type.png

Syntax error.png

Query.png

   

4 Replies
best response confirmed by Badger51 (Copper Contributor)
Solution
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.
Is that a Lookup Field? If so, you must filter on the Foreign Key field, not the description field.

No, not a looku field

@George_Hepworth 

@Harun24HR 

 

Thanks, that worked.....

 

Always looking for a shortcut !!

 

I tried "legislative" but not like "legislative !

 

1 best response

Accepted Solutions
best response confirmed by Badger51 (Copper Contributor)
Solution
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.

View solution in original post