Prev: Combo Box Search
Next: generate a confirmation email
From: Ken Warthen on 15 Apr 2010 18:25 I'm trying to format a field that contains a phone number on a split form. If the value in the Country/Region field is equal to the value "USA" I want the phone field to format as (@@@) @@@-@@@@. If the value is equal to any other country abbreviation I want to display whatever the value is without formatting. I'm using the following in the Control Source for the phone number field, but it's generating #Name? values. =IIf([Country/Region]="USA",Format([Business Phone],"(@@@) @@@-@@@@"),[Business Phone]) Any idea what I'm doing wrong here? Ken
From: Tom van Stiphout on 16 Apr 2010 00:33 On Thu, 15 Apr 2010 15:25:01 -0700, Ken Warthen <KenWarthen(a)discussions.microsoft.com> wrote: The error seems to indicate that either [Country/Region] or [Business Phone] is not the name of a field in the underlying data set. Otherwise your expression looks good. -Tom. Microsoft Access MVP >I'm trying to format a field that contains a phone number on a split form. >If the value in the Country/Region field is equal to the value "USA" I want >the phone field to format as (@@@) @@@-@@@@. If the value is equal to any >other country abbreviation I want to display whatever the value is without >formatting. I'm using the following in the Control Source for the phone >number field, but it's generating #Name? values. > >=IIf([Country/Region]="USA",Format([Business Phone],"(@@@) >@@@-@@@@"),[Business Phone]) > >Any idea what I'm doing wrong here? > >Ken
|
Pages: 1 Prev: Combo Box Search Next: generate a confirmation email |