I didn't work in the afterupdate event of the textbox.
My LoginForm stays open but hidden after input password. For various reasons. In many cases I refer to certain data in that form... one of them is DienstID...
So I put the code in the FormLogin load event and the other part in the report open event andů.. it works perfect....
Thank you so much, it was a productive day today
Enjoy the rest of the weekend