Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting characters from imported data

Status
Not open for further replies.

tjisaacs

Technical User
Jan 17, 2002
13
US
Can you tell me how to delete data from this string. I imported this data and want to delete everything to the right and including the "-" in my query?

K457243-3 NOW

I need to extract K457243 only
 
Left(fieldname, instr(fieldname,"-")-1
Check the instr function in help
 
OOps, left out last paren.
Left(fieldname, instr(fieldname,"-")-1 )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top