VirtualBob Posted August 17, 2013 Posted August 17, 2013 I have this rough assembly to add a phone area code based on the state postcode (zip code) of an entry. Its correct 90% of the time and cuts down on manual entry. However, I don't want it to calculate/generate a result if the field 'Landline Trimmed' is empty, as at the moment it creates "+61 2" in the field as the area code field always contains a value. Is there something I can add to this to stop it generating "+61 n"? Thanks Let( @NumbersOnly = Filter(Landline Trimmed; "0123456789"); "+61 " & Area code from postcode first numeral & " " & Left(@NumbersOnly; 4) & " " & Right(@NumbersOnly; 4) )
eos Posted August 17, 2013 Posted August 17, 2013 Wrap the existing statement into an If: If ( not isEmpty ( Landline Trimmed ) ; yourExistingStatement ) btw, why not GetAsNumber ( Landline Trimmed ) ?
VirtualBob Posted August 18, 2013 Author Posted August 18, 2013 Thanks for that. As for get as number, I do that initially via another field then work on it to build up a trimmed and formatted number.
Recommended Posts
This topic is 4172 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now