If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Sequentials Combo boxes
Hello!
I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an |
#2
|
|||
|
|||
You need to set up parameter queries to use as the data sours for the Param
and Date combo boxes. The syntax to refer to the value of a form control is: Forms!myForm!myControl where myForm is the name of your form, and myControl is the name of your control. So, for example, the selection criteria for the Param combobox query would be: componentID = Forms!myForm!cboCompon Then, in the AfterUpdate event of the first two cbo's you need to Requery the queries. HTH -- email me if you need an example. -- Rebecca Riordan, MVP Seeing Data: Designing User Interfaces Designing Relational Database Systems, 2nd Edition www.awprofessional.com Microsoft SQL Server 2000 Programming Step by Step Microsoft ADO.NET Step by Step www.microsoft.com/mspress "an" wrote in message ... Hello! I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an |
#3
|
|||
|
|||
See also The Access Web:
http://www.mvps.org/access/forms/frm0028.htm -- HTH Van T. Dinh MVP (Access) "an" wrote in message ... Hello! I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an |
#4
|
|||
|
|||
RR,
Thanks for your reply and help. an -----Original Message----- You need to set up parameter queries to use as the data sours for the Param and Date combo boxes. The syntax to refer to the value of a form control is: Forms!myForm!myControl where myForm is the name of your form, and myControl is the name of your control. So, for example, the selection criteria for the Param combobox query would be: componentID = Forms!myForm!cboCompon Then, in the AfterUpdate event of the first two cbo's you need to Requery the queries. HTH -- email me if you need an example. -- Rebecca Riordan, MVP Seeing Data: Designing User Interfaces Designing Relational Database Systems, 2nd Edition www.awprofessional.com Microsoft SQL Server 2000 Programming Step by Step Microsoft ADO.NET Step by Step www.microsoft.com/mspress "an" wrote in message ... Hello! I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an . |
#5
|
|||
|
|||
VTD,
Thanks for your sample codes. an -----Original Message----- See also The Access Web: http://www.mvps.org/access/forms/frm0028.htm -- HTH Van T. Dinh MVP (Access) "an" wrote in message ... Hello! I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an . |
#6
|
|||
|
|||
RR,
Sorry, but I have some difficulty to apply this procedure. Grateful for your offer, is possible to see an example, please? Thanks in advance. an -----Original Message----- You need to set up parameter queries to use as the data sours for the Param and Date combo boxes. The syntax to refer to the value of a form control is: Forms!myForm!myControl where myForm is the name of your form, and myControl is the name of your control. So, for example, the selection criteria for the Param combobox query would be: componentID = Forms!myForm!cboCompon Then, in the AfterUpdate event of the first two cbo's you need to Requery the queries. HTH -- email me if you need an example. -- Rebecca Riordan, MVP Seeing Data: Designing User Interfaces Designing Relational Database Systems, 2nd Edition www.awprofessional.com Microsoft SQL Server 2000 Programming Step by Step Microsoft ADO.NET Step by Step www.microsoft.com/mspress "an" wrote in message ... Hello! I would like to have a form, based in T_AnnualsValues, with 3 Combo boxes: 1 - CboCompon 2 - CboParam 3 - CboDate I would like to display in CboCompon, all possible components to choose one (with SELECT DISTINCT in Row Source); in CboParam only records "filtered" through CboCompon; In CboDate only the records "filtered" through CboParam (and CboCompon) with all differents dates. Any help is welcome! Thanks in advance an . |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Filtering records using multiple combo boxes | Mark Senibaldi | Using Forms | 0 | June 17th, 2004 03:55 PM |
Combo Boxes #1 | Tom | Using Forms | 0 | June 9th, 2004 03:50 AM |
Cascading Combo Boxes | Tom | Using Forms | 1 | June 9th, 2004 02:04 AM |
Cascading Combo Boxes -- Part 1 | rich | Using Forms | 0 | June 8th, 2004 10:03 PM |
Cascading Combo Boxes | Tom | Using Forms | 0 | June 8th, 2004 09:24 PM |