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 Developer Network    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Search for Customers
Graham Hendricks 
     
5 years ago
Hi fellow Developers. I design the customer form base on Developer 18 lesson 4 and 5. Now I need to search for the customers from a search form. After I design the search form[Search as you type] and The Search Form works 100% .

When I double click in the Search  list box on the specific customer to open the customer form for that specific customer than it gives me that error message "The form that I try to open are unbound". The Customer form are unbound base on Developer 18 lesson 4 and 5.

With my other databases the customer form are link  to customer table then the search list box works fine with no problem. Can someone help me please?
Juan C Rivera  @Reply  
            
5 years ago
I like to see what was done can you share the database so I can see.  No promise but will give it a shot.

V/r
Juan
Graham Hendricks OP  @Reply  
     
5 years ago
Hi Juan , yes I can  share this database with you. What is your email ? Thanks in advance for your help.

Regards
Graham
Adam Schwanz  @Reply  
           
5 years ago
Not reviewing the video lessons, so hopefully I'm not shooting this way out into left field. Just assuming what you mean. If you mean it has no record source. I don't think you can do that with an unbound form. It has to have some way to link the list to the form. I use a code like this, I don't remember what lesson but I got the basics of it somewhere along the way in the dev classes.

Private Sub CustomerList_DblClick(Cancel As Integer)
    If IsNull(CustomerList) Then
    Exit Sub
    Else
    DoCmd.OpenForm "CustomerF", , , "CustomerID= " & CustomerList
    End If
End Sub

If yours is similar to this, it will never return a valid customerID because it's not bound to any table that has the ID in it.
Graham Hendricks OP  @Reply  
     
5 years ago
Hi Adam thanks for the reply, it is not working because the ALL the text fields in the Customer form are unbound.
Already try that option:
If IsNull(CustomerList) Then
    Exit Sub
    Else
    DoCmd.OpenForm "CustomerF", , , "CustomerID= " & CustomerList
    End If
End Sub

Any other solutions from your side?
Regards,
Graham

Alex Hedley  @Reply  
           
5 years ago
Why is is unbound?
Adam Schwanz  @Reply  
           
5 years ago
To open an unbound form based on a customerID in the list box, you'd have to tell it what values you wanted it to load. The easiest way (I don't suggest, this is way overcomplicating it) to do that would be to make every unbound field a DLOOKUP based on the ID from the previous forms search listbox. I'd just make them bound.
Graham Hendricks OP  @Reply  
     
5 years ago
Hi Alex, the Customer Form are base on Developer 18 lesson 4 and 5. The record set for the customer form works 100%. Need to be able search for the customers in that form, even with another customer search form. Hope you can help? Regards
Alex Hedley  @Reply  
           
5 years ago
Alex Hedley  @Reply  
           
5 years ago
But why are you doing it this way?
Lesson 4/5 was just a way to show you an example of how to use RSs

Why would you not bind the CustomerF to the CustomerT/CustomerQ?

Usually you'd have a search form and when you select the Customer you want you can open the single form with all its data.
Adam Schwanz  @Reply  
           
5 years ago
Ah this lesson was recordsets, my answers were only slightly into left field then :). But yea, unless you have some strange reason, I'm with Alex, just bind it.
Graham Hendricks OP  @Reply  
     
5 years ago
Already tried the CustomerF to the CustomerT then received numerous errors like duplicate indexes. First when create the customer form that link to CustomerT it works fine then after while give Index error messages, that is the reason why want to  use RS
Alex Hedley  @Reply  
           
5 years ago
Is CustomerF a single form?
Is this one youve made yourself or one from the Template?
Adam Schwanz  @Reply  
           
5 years ago
If you don't get it solved here in the forum and want to send it to me I'll take a look later tonight when I get some free time. Unless Juan is already looking at it.

[email protected]
Graham Hendricks OP  @Reply  
     
5 years ago
Thanks Adam, can I send the database tomorrow to you. Will send you the customer form with the search form , is that okay?  
Alex I used the template and based the customer form on it.
Thanks guys for your help in advance
Juan C Rivera  @Reply  
            
5 years ago
I'm here if you guys need help.
Adam Schwanz  @Reply  
           
5 years ago
Yes, that's fine. You can send it to me or Juan, we will help if we can.
Graham Hendricks OP  @Reply  
     
5 years ago
Thanks guys, will forward db later

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

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: 5/7/2026 8:17:11 AM. PLT: 1s