S
SherryScrapDog
I have a database that is full of names (for genealogy) and I am displaying
the names on multiple screens in one field by concatinating the name fields
together. My fields are Last, First, Middle, Title. The Last name contains
some business names, which means there are no First, Middle or Title. I am
now using this in the control for each form: =Last & ", "&First&" " &
Middle& "" &Title. My problem is I get the comma on the business names. I
would like to make this conditional and did find one post that said: Expr1:
([Last]) & (", " + [First]) & (" " + [Middle]) & (", "+[Title])) , and I
tried this in the control and I end up with more commas. Probably because
I'd like to also put a comma before the Title, if it exists. Maybe this
isn't intended to put in the control property? Ideally, I would like a
public module where I could put the code to concatinate and use in my
multiple forms, but I do not know how to do this. I don't know what to put
in the module, and I don't know what I would put in the control. Do I need
to use If-Then to decide how to concatinate the name? Any help would be
appreciated. Thanks! Sherry
the names on multiple screens in one field by concatinating the name fields
together. My fields are Last, First, Middle, Title. The Last name contains
some business names, which means there are no First, Middle or Title. I am
now using this in the control for each form: =Last & ", "&First&" " &
Middle& "" &Title. My problem is I get the comma on the business names. I
would like to make this conditional and did find one post that said: Expr1:
([Last]) & (", " + [First]) & (" " + [Middle]) & (", "+[Title])) , and I
tried this in the control and I end up with more commas. Probably because
I'd like to also put a comma before the Title, if it exists. Maybe this
isn't intended to put in the control property? Ideally, I would like a
public module where I could put the code to concatinate and use in my
multiple forms, but I do not know how to do this. I don't know what to put
in the module, and I don't know what I would put in the control. Do I need
to use If-Then to decide how to concatinate the name? Any help would be
appreciated. Thanks! Sherry