I am building a small personal database to organize my DVD movies, but thought I would get this issue cleared in case I need to do this for either a work project or something for someone else.
One of the tables in the mdb file is, of course, the one that contains the titles of the movies. Eventually, the titles would show up on a list where I can go browse or search through them. To avoid having titles that start with articles such as "The" and "A" being mis-ordered (a hundred titles under "t"!), I set the fields in the table like so:
titleid (pk)
title (the name of the movie)
titlearticle (where I can insert articles like "the" separately. For those without an article in the title - e.g. 'Tron' - the field is null)
By ordering the title field in ascending order in a query of some sort, I would get the results I want.
My question is in regards how it will display on a form. If I do a concatenated text box (=[titlearticle]&" "&[title]), it would be fine for the movies titles that are headed by an article, but the movies that don't have an article would have an unnecessary space in front of the title and be misaligned in a continunous form list.
Can someone help come up with a string or a code that would help alleviate this problem (i.e. leave the [titlearticle] field out of the display if the field is null)?
One of the tables in the mdb file is, of course, the one that contains the titles of the movies. Eventually, the titles would show up on a list where I can go browse or search through them. To avoid having titles that start with articles such as "The" and "A" being mis-ordered (a hundred titles under "t"!), I set the fields in the table like so:
titleid (pk)
title (the name of the movie)
titlearticle (where I can insert articles like "the" separately. For those without an article in the title - e.g. 'Tron' - the field is null)
By ordering the title field in ascending order in a query of some sort, I would get the results I want.
My question is in regards how it will display on a form. If I do a concatenated text box (=[titlearticle]&" "&[title]), it would be fine for the movies titles that are headed by an article, but the movies that don't have an article would have an unnecessary space in front of the title and be misaligned in a continunous form list.
Can someone help come up with a string or a code that would help alleviate this problem (i.e. leave the [titlearticle] field out of the display if the field is null)?