I have created quite a few databases using access but I am in no way proficient. What I have is a database for a Police dept. They want their case numbers automatically input using a yyyy-m-d-1 format. The result would be the first case number for today would be 2015-12-22-1. The last number represents how many incident reports have been filed on that date. So the next would be 2015-12-22-2. I have been able to get the date part by having a [txtRPTDATE] control and using datepart with "-" separators. The problem I am having is I am trying to count the previous records in the table with the same date (including the new one) and get that in a textbox control so I can refer to that textbox with my code for the[ txtCASE_ID] last digit. I have a totals query made that counts the records properly. I just can't seem to find anyway to get the result of the query to appear in the textbox on the form. I also tried using the dcount function in the textbox (which I had never done before) to no avail. Any help would be appreciated. I have been 2 days on this one problem that I am sure is a simple problem but apparently not for me. I am using access 2003 to build the database but will then be converting it to access 2007.