Problem with Ms-query (text & numeric values)

Guitarde

Board Regular
Joined
Mar 18, 2003
Messages
244
Hi,

I'm trying to make a query on another file. In the first column I want to extract I have the product code which is sometime a number and sometime in text format. The query gets the one that are numerical and leaves blank for the text ones. I tried to convert the source file to have all in text format and it works within the query. I can't really change the source, is there a way in the sql statement to force all value as text? No problem to add a text character in the query if it would be possible to force it as text...

Product can be like 28 or 28XLS or HP2001...

Any idea ?

Thanks
Eric
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,574
Messages
6,120,329
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top