I have set up a form named AddNameForm in my workbook that has input boxes named Forename and SURNAME (see below).
When I call the module of which the following code is part I get the line show below flagged as an error:
' Etc, etc![]()
Please Login or Register to view this content.
I cannot understand why it recognises this form on the previous line but fails when the same form name is used on the next line.
Can anyone help?
Also the next line in the above code needs to put the SURNAME and Forename into the string variable called Name. I want to ensure the result is Forename SURNAME (e.g. Joe BLOGGS) and ensure that whoever enters the name in the form does not inadvertently put any trailing blanks after the name.
How can the be done? Thanks in anticipation.
Bookmarks