Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

[RESOLVED] Crystal Report Number as string formatting {Please Help}

$
0
0
Ok so I'm sure this is a simple fix however I am struggling with what I need to achieve and I'm hoping someone can help me out.

I have an order database with a table {ORDER_HEADERS} there is a field Order_ID which I need to bring into my crystal report. This report ultimately is used to generate a barcode of the order number on the bag. We were using azalea code 39 to do this but kept getting ufl errors on certain machines with varying O/S so I have tried another way of doing it which is :

dim wksOrderNumber as string

if {ORDER_HEADERS.Order_ID} <> 0 then
wksOrderNumber = "*" & {ORDER_HEADERS.Order_ID} & "*"
end if

formula = wksOrderNumber

The order numbers from the database are always a 5 digit number but will go to 6 digits in a few months if this makes a difference.

For it to be a valid barcode it has to have the * at the start and end of the number so for example *12345* would scan as 12345. This works however it is auto formatting the string to *12,345.00* For now I have it outputting in a standard font but once fixed and this reads *12345* I just need to change the font to code 39 Full / Extended to pick up the *'s.

I'm new here so please take it easy on me

Thanks in advance
Dan

Viewing all articles
Browse latest Browse all 594

Trending Articles