Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Phone Search Video
Bradley Neumann 
      
4 hours ago
Hi All,
Can someone help me find the video that showed how to add a customer by phone number? I know Richard did a video where you typed a phone number an if it was already in the customer database it opened that customer. If not, it took you to a new customer form with the phone number filled in and you added the rest. I can't find the video but wanted to try to make it search 2 phone number fields. I already have the version from the video working. I just can't find the video to review it to try to refresh my memory.

Thanks,
Brad
Kevin Robertson  @Reply  
          
3 hours ago
Is this the one you meant?

Search, Open, Add
Bradley Neumann OP  @Reply  
      
2 hours ago
Hi Kevin,
Yes that was it now I just need to figure out how to make it search 2 fields instead of one.

Thanks,
Brad
Kevin Robertson  @Reply  
          
65 minutes ago
You could do something like this:

DetailsPrivate Sub PhoneSearch_AfterUpdate()

    Dim Criteria As String

    Criteria = "HomePhone=""" & PhoneSearch & """ OR WorkPhone=""" & PhoneSearch & """"

    If DCount("*", "CustomerT", Criteria) = 0 Then
        If MsgBox("Phone number does NOT exist. Add as new customer?", _
            vbYesNoCancel + vbQuestion, "Add New?") = vbYes Then
            
            DoCmd.OpenForm "CustomerF", , , , acFormAdd
            Forms!CustomerF!HomePhone = PhoneSearch
            PhoneSearch = ""
        End If
    Else
        DoCmd.OpenForm "CustomerF"
        Forms!CustomerF.Filter = Criteria
        Forms!CustomerF.FilterOn = True
        PhoneSearch = ""
    End If

End Sub


This will search both HomePhone and WorkPhone and filter the Form for records that match the criteria.
Add a Reply Upload an Image
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: 8/17/2026 7:10:50 PM. PLT: 0s