I'm using CR 8.0 on ODBC base, and want to include a simple formula to return a name for a Postal (Zip) Code. Here in New Zealand we have about 2100 place names using codes from 0001 to 9999. I have downloaded the codes into Excel, pasted into Word and converted table to text, resulting in a Word document of 39 pages (2,100 lines)showing one code on each line. Pasting this into Crystal, I received an error message saying the formula was too long. Halving the selection gave the same result - error message. Checking previous threads I found a reference (in 2001) to a maximum formula size of 54Kb, but my formula would appear to be nowhere near this limit. Does anyone know what the limit is, or how to overcome this problem?
Sample below. Any suggestions welcome.
if {SOP30200.ZIPCODE} = 0101 Then "Whangarei"
else if {SOP30200.ZIPCODE} = 0121 Then "Glenbervie"
else if {SOP30200.ZIPCODE} = 0121 Then "Hukerenui"
else if {SOP30200.ZIPCODE} = 0121 Then "Kauri"
else if {SOP30200.ZIPCODE} = 0121 Then "Kokopu"
else if {SOP30200.ZIPCODE} = 0121 Then "Mangapai"
else if {SOP30200.ZIPCODE} = 0121 Then "Oakleigh"
Sample below. Any suggestions welcome.
if {SOP30200.ZIPCODE} = 0101 Then "Whangarei"
else if {SOP30200.ZIPCODE} = 0121 Then "Glenbervie"
else if {SOP30200.ZIPCODE} = 0121 Then "Hukerenui"
else if {SOP30200.ZIPCODE} = 0121 Then "Kauri"
else if {SOP30200.ZIPCODE} = 0121 Then "Kokopu"
else if {SOP30200.ZIPCODE} = 0121 Then "Mangapai"
else if {SOP30200.ZIPCODE} = 0121 Then "Oakleigh"