A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sequentials Combo boxes



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2004, 02:36 PM
an
external usenet poster
 
Posts: n/a
Default 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  
Old August 16th, 2004, 04:01 PM
Rebecca Riordan
external usenet poster
 
Posts: n/a
Default

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  
Old August 16th, 2004, 05:26 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default

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  
Old August 16th, 2004, 06:38 PM
an
external usenet poster
 
Posts: n/a
Default

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  
Old August 16th, 2004, 06:39 PM
an
external usenet poster
 
Posts: n/a
Default

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  
Old August 16th, 2004, 08:26 PM
an
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 03:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.