Antimatter
Registered User.
- Local time
- Today, 12:32
- Joined
- Aug 26, 2004
- Messages
- 16
Right now i have this following code for my author field in the row source
and it works great, but this is not an serious problem but more of an vanity issue, but i can live with it if there's no easy way to solve it.
Okay for the author name, some authors don't have middle name so using that above code to string together the author name, it works fine but i have a extra space.
example:
without the extra space in middle from stringing together the non existant middle name.
anyway to setup an sort of code that is an IF statement, such as it check is there anything in the Middle name field, if no then it would use this code
but if there is something in the middle name field then it would use this code
is there anyway to do that from the Row Source or will i have to construct some sort of visual basic code and stick it in an event for it to work, if its too complex then i can just leave it alone, its more of an vanity issue than an serious problem.
i'm thinking maybe one solution is to have an "back space" character in the empty middle name field so when it get merged to be showen on the form it will automaticaly delete one of the space. would that work?
Code:
SELECT DISTINCT [Author].[AuthorID], [First] & " " & [Middle] & " " & [Last] AS FullName FROM Author;
and it works great, but this is not an serious problem but more of an vanity issue, but i can live with it if there's no easy way to solve it.
Okay for the author name, some authors don't have middle name so using that above code to string together the author name, it works fine but i have a extra space.
example:
Code:
R.A. Salvore
it should be
R.A. Salvore
without the extra space in middle from stringing together the non existant middle name.
anyway to setup an sort of code that is an IF statement, such as it check is there anything in the Middle name field, if no then it would use this code
Code:
SELECT DISTINCT [Author].[AuthorID], [First] & " " & [Last] AS FullName FROM Author;
but if there is something in the middle name field then it would use this code
Code:
SELECT DISTINCT [Author].[AuthorID], [First] & " " & [Middle] & " " & [Last] AS FullName FROM Author;
is there anyway to do that from the Row Source or will i have to construct some sort of visual basic code and stick it in an event for it to work, if its too complex then i can just leave it alone, its more of an vanity issue than an serious problem.
i'm thinking maybe one solution is to have an "back space" character in the empty middle name field so when it get merged to be showen on the form it will automaticaly delete one of the space. would that work?
Last edited: