Use wizard for text in Excel, choose data type for that column as text....
Or open a worksheet, format a column as text, copy/paste BAQ from grid Analyze tab (test) into Excel
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Brian Kozic
Sent: Monday, July 02, 2012 7:13 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Leading Zero BAQ Export
I received a syntax error when using the "'" + string(part.PartNum).
Format X30 Datatype Character
Any thoughts?
Brian
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of jckinneman
Sent: Monday, April 16, 2012 2:56 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Leading Zero BAQ Export
You can try concatenating a single ' on the front of the value
"'" + string(part.PartNum) this usually has Excel treat the value as a string not a number.
Jim Kinneman
Encompass Solutions, Inc
Or open a worksheet, format a column as text, copy/paste BAQ from grid Analyze tab (test) into Excel
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Brian Kozic
Sent: Monday, July 02, 2012 7:13 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Leading Zero BAQ Export
I received a syntax error when using the "'" + string(part.PartNum).
Format X30 Datatype Character
Any thoughts?
Brian
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of jckinneman
Sent: Monday, April 16, 2012 2:56 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Leading Zero BAQ Export
You can try concatenating a single ' on the front of the value
"'" + string(part.PartNum) this usually has Excel treat the value as a string not a number.
Jim Kinneman
Encompass Solutions, Inc
--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>, "michael.hutcheson@...<mailto:michael.hutcheson@...>" <michael.hutcheson@...<mailto:michael.hutcheson@...>> wrote:
>
> Hey folks,
>
> I have created a BAQ to export fields, part number being one of them.
>
> However, when I then open the exported csv file the leading zeros of any part numbers is being removed.
>
> Our part numbers are alpha numerica.
>
> I created a calculated field that simply had the below as the formula:
> STRING (Part.PartNum)
>
> I have entered X(20) for the format and Character as the data type, but again, when I open in Excel the leading zeros are being removed.
>
> Any one know how to get round this?
>
> Regards,
>
> Michael
> Vantage 8.03.406 / Progress
>
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]