Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return field data starting at number 1

Status
Not open for further replies.

mgallot

MIS
Jan 22, 2001
93
US
I need to return data from an address field (address1) starting where a number exists.
Example:
Sunny Hill Gardens 1601 Sunshine Lane - data in field
1601 Sunshine Lane - data that needs to be returned

The numbers are always in different positions in the field.
Thanks for your help.


 
whileprintingrecords;
numbervar i := 1;

while i <= len({AddressField}) and not(isnumeric({AddressField})) Do

(if isnumeric({AddressField}) then i
else i := i + 1);

mid({AddressField},i,len({AddressField}) -i + 1);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top