Sorry good people, I got a reply to the following topic from FoFa a while ago and I thought I sorted out the problem but Im not sure where to put the text that FoFa suggested. Sorry for being thick but im a newbie.
My problem:-
I have to produce a report showing only the initials of a person's surname, and just the first 4 digits of a person's postcode.
The 1000s of records which are currently in the database at the moment are as follows:- Colin Smith, James Brown etc etc
I would like this to display C S, and J B on the report.
The same goes for postcoding, ie:- ME2 3ER
I would like this to display ME2 3 on the report.
FoFa solution was:-
If the postal code is always xxx xxx you can use LEFT(PostalCode,5). Names are an issue if they are contained in one field. You can parse them looking for space, but you usually run into those that are suppose to have a space and then they get screwed up. If the names are in different fields, you can use LEFT(FirstName,1) & " " & LEFT(LastName,1) (using your example).
Im just not sure where this goes.
Can anyone help me with this please.
Thanks all.
My problem:-
I have to produce a report showing only the initials of a person's surname, and just the first 4 digits of a person's postcode.
The 1000s of records which are currently in the database at the moment are as follows:- Colin Smith, James Brown etc etc
I would like this to display C S, and J B on the report.
The same goes for postcoding, ie:- ME2 3ER
I would like this to display ME2 3 on the report.
FoFa solution was:-
If the postal code is always xxx xxx you can use LEFT(PostalCode,5). Names are an issue if they are contained in one field. You can parse them looking for space, but you usually run into those that are suppose to have a space and then they get screwed up. If the names are in different fields, you can use LEFT(FirstName,1) & " " & LEFT(LastName,1) (using your example).
Im just not sure where this goes.
Can anyone help me with this please.
Thanks all.