This will differ from database to database.
You will want to look into the SUBSTRING function for your particular database.
Here are some options for how to get the position of the space (which you will need to know how many characters to take with SUBSTRING):
SQL Server: CHARINDEX, PATINDEX
MS Access: INSTR
ANSI-SQL Equivalent: POSITION
Hope this helps,
Alex
[small]----signature below----[/small]
I don't do any programming whatsoever
Ignorance of certain subjects is a great part of wisdom