My error, appended the slash in the wrong place.
Field: NoSlash: Left([Your TableName].[Your Field Name] ,
Instr(1,[Your TableName].[Your Field Name] & "/","/")-1)
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
scubadiver said:
I guess the code is assuming that every line has a "/" ??
John Spencer said:
You can use a calculated field to get the result you want.
Field: NoSlash: Left([Your TableName].[Your Field Name] & "/",
Instr(1,[Your
TableName].[Your Field Name],"/")-1)
NoSlash can be replaced with the name of your field or with any other
name
you want to give the calculated field.
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
Hello,
thanks for the reply. I didn't think that queries could be filtered the
way
you suggested so I wasn't too clear with my question.
I don't want to filter the records, just get rid of the / and
everything
to
the right.
So this...
ALS
ALS/24
CDWS
CDWS/4
CDWS/OSS
CDWS/RSR
DWS
DWS/4
DWS/OSS
DWS/HER
DWS/RSR
DWS/BUNDLE
OSS/OSS
should become this...
ALS
ALS
CDWS
CDWS
CDWS
CDWS
DWS
DWS
DWS
DWS
DWS
DWS
OSS
cheers