Solved

Combo Box Selection to limit display in text box

Posted on 2011-03-02
6
317 Views
Last Modified: 2012-06-27
Hi Experts,

Can someone help me with having only the details section in the form updated based on the selection made in the combo box

i have attached a copy of the db. Example if i select state as "AL" in the combo box i should see result in the details tab as "8789", "92323" and "8979" and then when i select jurisdiction as "KJKJJKL" then i should only see "8979" in the details section.

You help on this is appreciated.

Thanks,
Nod
test.accdb
0
Comment
Question by:Saichand
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 500 total points
ID: 35025836
I may suggest to create 2 subforms. One subform must be sourced from a query that in a Where Clause you may put like Forms!frmYourParentForm!cboYourCombo1.

The other subform source is also a query and the Where clause would be Forms!frmYourParentForm!cboYourCombo1 And Forms!frmYourParentForm!cboYourCombo2.

On the After Update Event of your combo boxes, you need to requery the 2 subforms as:

Me.sfrmForm1. Requery
Me.sfrmForm2. Requery


Sincerely,
Ed
0
 

Author Comment

by:Saichand
ID: 35028463
the default view of my form is continuous. do you think it would work?
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 35028634
Use the Single Form property of your parent/main form.

Ed
0
 

Author Comment

by:Saichand
ID: 35028673
correct me if i am wrong and let me know if i would get the list of accounts like i want in the details section
0
 

Author Closing Comment

by:Saichand
ID: 35120914
The sugesstion helped me resolve the issue
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question