Hi Folks,
A long time since I have needed to change anything on my database and I cannot remember a critical piece of information - I am hoping someone on here can help me with a suggestion.
Anyway the problem is this:
I have a field in my database which is a character string of 4 length similar to the field in the Alphasports example database (I think it was the Alpha Five Version 8 of the Alphasports example database - not the latest which is different) which holds sales peoples names. But I cannot remember how the field which is 4 chars long can hold the full name of the salesperson and display it correctly on the form even though it is obviously held internally as a number?
I want to use the left() function to return the first letter of each of the names (firstname, surname) to obtain their initials, however when I use the following code:
Left(Purchaser,1)+Left(PURCHASER,pos_from_word_number(PURCHASER,2))
It returns numbers instead e.g. 11 not AW which I expected
Somehow and this is the bit I cannot remember the Character 4 field PURCHASER is displaying the full name of the Purchaser on the form, but the value that is stored in the database is a number.
I think these values are stored in a table in the format:
Sales_person_id : Name
100 : Alastair Whyley
Sorry for the long post, but does this make sense to anybody?
A long time since I have needed to change anything on my database and I cannot remember a critical piece of information - I am hoping someone on here can help me with a suggestion.
Anyway the problem is this:
I have a field in my database which is a character string of 4 length similar to the field in the Alphasports example database (I think it was the Alpha Five Version 8 of the Alphasports example database - not the latest which is different) which holds sales peoples names. But I cannot remember how the field which is 4 chars long can hold the full name of the salesperson and display it correctly on the form even though it is obviously held internally as a number?
I want to use the left() function to return the first letter of each of the names (firstname, surname) to obtain their initials, however when I use the following code:
Left(Purchaser,1)+Left(PURCHASER,pos_from_word_number(PURCHASER,2))
It returns numbers instead e.g. 11 not AW which I expected
Somehow and this is the bit I cannot remember the Character 4 field PURCHASER is displaying the full name of the Purchaser on the form, but the value that is stored in the database is a number.
I think these values are stored in a table in the format:
Sales_person_id : Name
100 : Alastair Whyley
Sorry for the long post, but does this make sense to anybody?
Comment