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

HOW TO INSERT DATE AND TIME INTO THE HEADER AND FOOTER SECTIONS OF YOUR MS ACCESS REPORT ?

What is the function of primary key when creating a database in access?

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