Trying to display form records - if the caption for the field has a space it will not resolve
I am trying to display comments from a comments form I created. We also want to display First Name and Last Name fields. I followed the notation regarding displaying fields (use the dot notation and if the caption has a space in it - ignore it) So I tried .FirstName and .LastName and it will not resolve. I even went so far as to change the caption on the form from First Name to FirstName and from Last Name to LastName and it still does not work.
Any of my fields whose captions have a space in them do not resolve. All of the single word caption fields do (date, comment, city, state)
Is there any way I can get these two word caption fields to resolve?
Trying to display form records - if the caption for the field has a space it will not resolve
I am trying to display comments from a comments form I created. We also want to display First Name and Last Name fields. I followed the notation regarding displaying fields (use the dot notation and if the caption has a space in it - ignore it) So I tried .FirstName and .LastName and it will not resolve. I even went so far as to change the caption on the form from First Name to FirstName and from Last Name to LastName and it still does not work.
Any of my fields whose captions have a space in them do not resolve. All of the single word caption fields do (date, comment, city, state)
Is there any way I can get these two word caption fields to resolve?
Comment author was deleted
it should ignore the space but from your report it obviously doesn't, you can also use this notation (using the full caption)
record.GetField(”my caption”).Values[0]
THANK YOU!
Comment author was deleted
No prob, glad it was helpful :)
is working on a reply...