DRananahan
Registered User.
- Local time
- Today, 10:14
- Joined
- Jul 24, 2000
- Messages
- 14
I need some help!!!
I have a Customer Information form that allows input for either a company or FirstName MI and LastName. Another field on my form is for the Short Name. The short name is for the first 15 characters of either the company name or the individual's name.
My code pulls is as follows:
Private Sub ShortName_Enter()
Me.ShortName = IIf(IsNull([CompanyName]), Left(([Lastname] & " " & [FirstName] & " " & [MI]), 15), Left(([CompanyName]), 15))
My problem is this: In the CompanyName field, the user is to enter an "*" for how the name should be alphabetized (i.e. The*ABC Corporation) I need Access to check for the "*" and start the short name from there. Also, if the name (individual or company) has a "-" I need it removed and a space inserted.
Any help would be much appreciated.
Thank you,
Doug
I have a Customer Information form that allows input for either a company or FirstName MI and LastName. Another field on my form is for the Short Name. The short name is for the first 15 characters of either the company name or the individual's name.
My code pulls is as follows:
Private Sub ShortName_Enter()
Me.ShortName = IIf(IsNull([CompanyName]), Left(([Lastname] & " " & [FirstName] & " " & [MI]), 15), Left(([CompanyName]), 15))
My problem is this: In the CompanyName field, the user is to enter an "*" for how the name should be alphabetized (i.e. The*ABC Corporation) I need Access to check for the "*" and start the short name from there. Also, if the name (individual or company) has a "-" I need it removed and a space inserted.
Any help would be much appreciated.
Thank you,
Doug