I have a field that is generated by
Me.Id = Format(Date, "YYYYMMDD") & "-" & Me.TxtId_dia
So each day I can put one "1" and thereīs no problem. The deal is that when someone enters in the same day another "1" (I know itīs logical) a error message kicks in but the thing is I would like to write that text box by myself cuz that the default msgbox that shows up has a button that opens the interface of VBA so I donīt want my users to see that. I have no clue about how to do that thereīs no On error event on the text box.