Hi, Melbin, and welcome to the forum.
Please see Wiki - how to post code on this forum. There's a pencil icon below your post so that you can edit and tidy it up. If you use the code formatting </> and "Hide Details" for code and error messages it keeps things very tidy.