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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract Data

Status
Not open for further replies.

warrenk

Technical User
Feb 6, 2005
17
US
I am trying to extract a number from a url. Basically I am trying to extract the data between '-p-' and '.html'. Is this possible? If so, can I do this in a Microsoft Access SQL?

IE.
Field1 = Field2 would be 2831.

Thanks for any help!
Warren
 
What about this ?
Val(Mid(Field1,InStr(Field1,"-p-")+3))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,

This is exactly what I was looking for. Works great!

Appreciate your help!
Warren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top