473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Creating a searchable combo box

Hello,

I am attempting to create a form with a combo box that searches a subform and I have been using the following link as a guide (https://www.youtube.com/watch?v=8N1hRBdsI1s). When I set up the subform to contain fields from several different relational tables I am unable to see the populated records in the Layout view. If I use one of the tables (which contain only numbers for the foreign keys that I do not want users to search on) then I am able to visualize the populated records. Any thoughts would be greatly appreciated!
Sep 23 '15 #1
4 1558
I'm finding that if I have all the fields filled out then the records appear in the subform. If one of the fields from one of the tables is not filled out then the subform will not show that "incompletely" filled out record. I don't care if all the information is not there. I want to be able to see any available record information. Thank you again for your assistance!
Sep 23 '15 #2
hvsummer
215 128KB
another long step toward form making...
I have spent 30hours to learn how to create form from internet
you can do that too.
I'll give you some advice.
-first you have to know what is source control, what is row source of combobox. different between them.
-then you need to know all usefull property of those box (listbox, combobox, textbox). for example (listbox and comboxbox have these control-property you gonna use much: "control'sname.itemselected,
.itemselected.count, *box.enabled, *box.requery)
-then learn to put the Forms!nameofform!nameofcontrol/box inside the criteria of query's control of form's object (listbox, combobox)
-try to test and fail, it'll give you experience.
-learn the event of form: afterupdate, click, focus... etc.
-learn the VBA code for form. (not much)
-learn how to bound control of child field and master field link between subform and mainform.
then you'll able to create your own form.
Sep 23 '15 #3
NeoPa
32,556 Expert Mod 16PB
Some good advice there.
HVSummer:
-then learn to put the Forms!nameofform!nameofcontrol/box inside the criteria of query's control of form's object (listbox, combobox)
This one line I'd take with a pinch of salt (That means be careful of it). I don't advise using that approach where you can avoid it as it ties queries to specific forms and thus makes them inflexible. Forms have filter properties which, if used, allow filtering to be specified for the form without requiring a new query be created for each form.
HVSummer:
-try to test and fail, it'll give you experience.
Absolutely true. Very good advice.

Most of the rest is good too, but that line particularly so.
Sep 24 '15 #4
jforbes
1,107 Expert 1GB
I won't go to youtube unless I have to. There are plenty of reasons, but the biggest and most important here is that if you would like us to help you with your code, you can post the code here and then we will all be on the same page and commenting on the same code, specifically, your code.

Regardless if you post your code here, this might be beneficial to you in your situation: http://bytes.com/topic/access/insigh...filtering-form
Sep 25 '15 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Derek Jones | last post by:
I am currently working on an application for our Business Office to easily search for new budget codes that we have to establish due to an administrative system conversion we are currently...
6
by: moi_bobbo | last post by:
I want to override the existing Combobox class and give it a readonly property so that the backcolor of the combobox will be grey with the forecolor being black as is the case for a textbox set to...
12
benchpolo
by: benchpolo | last post by:
I have a group of 20 images (.jpg) formats that I want to incorporate with my new access database that will dynamically display the image on the form based on the value that I select from the...
6
by: dougmeece | last post by:
Hello, I have a form that I would like to auto-populate text boxes in based on the selection made from a combo box. I have set the form record source to a table "SubmittedTo" which contains 3...
1
by: tremonti92 | last post by:
Hello.. I have a table with a field name called 'Professions'. There are many same multiple values for this field, for example, there are many records with the value 'Doctor' under this field. ...
5
by: John Torres | last post by:
I have a tblSupplierInformation which consist of SupplierID, ContactName, PhoneNumber among other name fields. I’m creating a combo box from the tblSupplierInformation to a form “Purchase Order...
2
by: vicsalt | last post by:
im having a problem. Im creating a combo box and getting the values from a table. As i have done numerous times before. I use the wizard and all looks fine. Then when i use the combo box there...
0
by: Gordon Padwick | last post by:
A form contains controls, one or more of which can be other forms. A form that contains another form is known as a main form. A form contained by a main form is known as a subform. A subform itself...
1
by: forums1167 | last post by:
I am creating a combo box with a button. In the below vba code, I am getting the string from the combo box. Then, I am trying to use SQL to the corresponding distro lists in the table (same row)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.