ACCESS QUERIES: DATE CRITERIA MAY NOT ALWAYS WORK WITH MS ACCESS QUERY

ms access database tutorial There are many ways and questions to ask a database using queries and mastering the special conventions and criteria will pay dividend and avoid silly mistakes, illogical record set results and even errors.

The criteria for the above shows >=#01/01/2016 < #31/12/2016# which will not actually return the correct range and instead show what’s known as logical errors (dates outside the range).
It’s missing the ‘And’ operator and better still adding the ‘Between’ operator will capture the correct range too. The # (hash sign) is the correct convention and good check to ensure it’s the right data type too (date/time in this case).ms access database tutorial
34 Edgwarebury Lane,Edgware,Middlesex,HA88LW,UK

Comments

Popular posts from this blog

Microsoft Access Queries: An Action Query

How To Run Microsoft Access On A Mac PC Using CrossOver Software – Alternative Options

Microsoft Access Tutorial: Creating A Many-To-Many Relationship