Well adapt the code,it populates the new serial when the form is initialised,add the at part to your other code or call the initialisation event