Ask a Question related to Coldfusion Database Access, Design and Development.
-
lxsc #1
Split name into last name and first name in Access 2000project
Hello All,
I have a question in database.
Our database is SQL server 2000. Nomally we convert SQL server 2000 to Access
for user creating Access report by using Access form and report.
It looks like Access database is different with the Access database which
convert form SQL server( It called Access Project, I searched website).
For example, I have a name field in Access database, I can use the following
code to split name to last name and first_middle name. (If no middle name,
select left from the first space as first_middle_name, otherwise select left
from second space as first_middle_name, as well as select from Right for last
name)
Database name: name
Table name: name
SELECT name.name,
IIf(InStr(InStr(," ")+1,," ")=0,Left(,InStr(," ")),Left(,InStr(InStr(,"
")+1,," "))) AS F_M_Name,
IIf(InStr(InStr(," ")+1,," ")=0,Right(,Len()-InStr(,"
")),Right(,Len()-InStr(InStr(," ")+1,," "))) AS lname
FROM name;
When I work on the Access database which was converted from SQL server, the
InStr DOES NOT work for it.
I know the syntax for those two may be different. I could not find info from
website: how can I find the first space and second space in name field? How can
I use IF when only one space in name field?
Thanks very much!
lxsc Guest
-
Split a field into two or three
I have a field with City, State, and ZIP all in one, and would like to split the field into 3 different fields. Example: Field1 = 'Sarasota, FL ... -
split what?
I don't know if this is an intelligent question or not, bear with me. I downloaded a script that makes operations on data posted with a HTML form... -
split filename
who can split this file name then subtract "kenny.pdf" file name--> C:\programfiles\funk\pdf\kenny.pdf -
Split question
Hi, i am new to Perl. here is my question .... i have a character string like abc#def#ghi#jkl i want to split the string based on the... -
split -command ??
Hi, I was trying to do the following. It's my first php "project", so it's quiet logic that i have some problems. Perhaps the php community might...



Reply With Quote

