Here is a query that will extract your OD and ID out of your string.
Assuming you have a table (tblDimensions) with a field holding your string of dimensions and other text (DimDesc).
This query will extract all the OD and ID dimensions including the quote for inches and leave the ID blank if there is no ID.
[code=vb]
SELECT tblDimensions.D imDesc, Mid([DimDesc],1,InStr(1,[DimDesc],'"')) AS OD, IIf(InStr(1,[DimDesc],'x')<>0,Trim(( Mid([DimDesc],InStr(1,[DimDesc],'x')+1,InStr(1 ,[DimDesc],'"'))))) AS ID
FROM tblDimensions;
[/code]
cheers,
Assuming you have a table (tblDimensions) with a field holding your string of dimensions and other text (DimDesc).
This query will extract all the OD and ID dimensions including the quote for inches and leave the ID blank if there is no ID.
[code=vb]
SELECT tblDimensions.D imDesc, Mid([DimDesc],1,InStr(1,[DimDesc],'"')) AS OD, IIf(InStr(1,[DimDesc],'x')<>0,Trim(( Mid([DimDesc],InStr(1,[DimDesc],'x')+1,InStr(1 ,[DimDesc],'"'))))) AS ID
FROM tblDimensions;
[/code]
cheers,
Comment