Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Allowing One Phone as Primary Out of Multiple
Nilsen Septon 
   
15 months ago
I have a subform in my main Customer form for multiple phone numbers. I have 'Yes/No' as 'IsPrimary' and I only want to have one phone number (regardless of phone type) to be selected as the Primary number. I tried setting a validation rule [IsPrimary] = True but that didn't work (it allowed me to select multiple numbers as primary). Stuck.....
John Davy  @Reply  
         
15 months ago
Why not create a field PrimaryPhone and check it? John
Michael Craytor  @Reply  
     
15 months ago
I handle this in my form by running an update query when isPrimary is checked that updates every number for the customer that is NOT the number selected to isPrimary = false. So if a customer has numbers A, B, C, and D, and the user checks C as 'IsPrimary,' then an update query sets A, B, and D to 'IsPrimary' to false.
Nilsen Septon OP  @Reply  
   
15 months ago
@John Davy - Not sure what you are saying...what I have is a continuous form that has phone types like 'Cell', 'Home', 'Office'...and so forth - I have a checkbox (Yes/No) labeled as "IsPrimary" and I only want one of those checked at any one time. That way, I can query and/or pull the 'Primary' number into another phone field in another form/table.

@Michael Craytor - That sounds good, but my SQL skills are a little rusty and am having trouble picturing what the syntax would be...or is this in VBA? Sorry, I sound like a noob but I haven't had to go too deep into SQL over the last 10 years (and then zero SQL over the past year as I'm currenlty 'semi-retired' but am picking up a few freelance jobs here and there).

Thanks in Advance!!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/16/2026 11:18:47 AM. PLT: 1s