Solved

Combo Box Selection to limit display in text box

Posted on 2011-03-02
6
284 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now