dbTalk Databases Forums  

how INDEX works in Ms Access

comp.databases.ms-access comp.databases.ms-access


Discuss how INDEX works in Ms Access in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Testingg
 
Posts: n/a

Default how INDEX works in Ms Access - 03-07-2008 , 06:22 AM






HI Experts
am trying to split "Srinath Reddy Kanuganti:Kanuganti GCI" in to two
parts
Srinath Reddy Kanuganti and Kanuganti GCI
which is seperated by (
i tried with Select
mid$ (tpcname,1,PATINDEX('% %',tpcname))
from tab;
and used INDEX insted of PATINDEX ...
sitll no luck with LEFT insted of MID

my requirement is to get the first part of the name from the column

pl help me

Thanks in advance

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: how INDEX works in Ms Access - 03-07-2008 , 08:00 AM






On Fri, 7 Mar 2008 04:22:51 -0800 (PST), Testingg
<sanathsharma (AT) gmail (DOT) com> wrote:

patindex is a T-SQL function, and not available in Access.
You can use the InStr function instead.
In some cases (but not in a query) the Split function can be used.

-Tom.


Quote:
HI Experts
am trying to split "Srinath Reddy Kanuganti:Kanuganti GCI" in to two
parts
Srinath Reddy Kanuganti and Kanuganti GCI
which is seperated by (
i tried with Select
mid$ (tpcname,1,PATINDEX('% %',tpcname))
from tab;
and used INDEX insted of PATINDEX ...
sitll no luck with LEFT insted of MID

my requirement is to get the first part of the name from the column

pl help me

Thanks in advance

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.