Hi
I am very new to coding so please be patient with me!
I have a form called AM Contact Mgmt that reads data from a table called AM Clients.
The table AM Clients contains 3 fields:
Phone - text format
Mobile - text format
Preferred Phone - number format
On the form AM Contact Mgmt I have 4 fields
Phone - text format
Mobile - text format
Preferred phone - 2 check boxes - if no check box is selected the value on Preferred phone is 0, if check box 1 is selected the value in Preferred Phone is 1 and if check box 2 is selected the value in Preferred Phone is 2.
PhoneTop - Unbound
What I want to do is have PhoneTop display the preferred contact phone number so I guess something like this:
If [Preferred Phone] = 0 Then [PhoneTop]=[Phone]
else
If [Preferred Phone] = 1 Then [PhoneTop]=[Phone]
else
If [Preferred Phone] = 2 Then [PhoneTop]=[Mobile]
I hope that this makes sense, any help would be greatly appreciated.
Thanks
I am very new to coding so please be patient with me!
I have a form called AM Contact Mgmt that reads data from a table called AM Clients.
The table AM Clients contains 3 fields:
Phone - text format
Mobile - text format
Preferred Phone - number format
On the form AM Contact Mgmt I have 4 fields
Phone - text format
Mobile - text format
Preferred phone - 2 check boxes - if no check box is selected the value on Preferred phone is 0, if check box 1 is selected the value in Preferred Phone is 1 and if check box 2 is selected the value in Preferred Phone is 2.
PhoneTop - Unbound
What I want to do is have PhoneTop display the preferred contact phone number so I guess something like this:
If [Preferred Phone] = 0 Then [PhoneTop]=[Phone]
else
If [Preferred Phone] = 1 Then [PhoneTop]=[Phone]
else
If [Preferred Phone] = 2 Then [PhoneTop]=[Mobile]
I hope that this makes sense, any help would be greatly appreciated.
Thanks