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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multiple Drop Down



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2004, 04:51 AM
Dennis
external usenet poster
 
Posts: n/a
Default Multiple Drop Down

I have a combo box that displays three related pieces of
data. Grade1, Grade2 and Rate. I update the Rate field in
my form with this combo box. What I would like to do is
transfer the other related pieces of data in this combo
box to update the two other fields in my form also called
Grade1 and Grade two with the same combo box and at the
same time I choose the Rate. To clarify, when I select the
Rate combo box I want Rate to update, Grade1 to update and
Grade2 to update all in one combo box selection. Is that
possible? If so how can I do it?

Thanks,

Dennis
  #2  
Old May 26th, 2004, 01:10 PM
Gary Walter
external usenet poster
 
Posts: n/a
Default Multiple Drop Down


"Dennis" wrote
I have a combo box that displays three related pieces of
data. Grade1, Grade2 and Rate. I update the Rate field in
my form with this combo box. What I would like to do is
transfer the other related pieces of data in this combo
box to update the two other fields in my form also called
Grade1 and Grade two with the same combo box and at the
same time I choose the Rate. To clarify, when I select the
Rate combo box I want Rate to update, Grade1 to update and
Grade2 to update all in one combo box selection. Is that
possible? If so how can I do it?

Hi Dennis,

Sure...piece of cake. 8-)

In AfterUpdate event of combobox,
just assign

-- combobox.Column(1) to
textbox for that column (Gradex)
-- combobox.Column(2) to
textbox for that column (Gradey)


For example, cmboRate, bound to [Rate]
has controlsource like

SELECT [Rate], [Grade1], [Grade2] FROM yourtable;

[Rate] will be cmboRate.Column(0)
[Grade1] will be cmboRate.Column(1)
[Grade2] will be cmboRate.Column(2)

On your form,

txtGrade1 is bound to [Grade1]
txtGrade2 is bound to [Grade2]

So, in AfterUpdate event of cmboRate

me!txtGrade1 = me!cmboRate.Column(1)
me!txtGrade2 = me!cmboRate.Column(2)

the column # will be determined by the order
they appear in your controlsource select query,
so may be different than above.

Please respond back if I have misunderstood.

Good luck,

Gary Walter


  #3  
Old May 27th, 2004, 01:52 AM
Dennis
external usenet poster
 
Posts: n/a
Default Multiple Drop Down

Gary,

Thank you for your help. It works perfectly. This one fix
will stop a lot of the data entry errors we have been
experiencing!

Ever grateful,

Dennis

-----Original Message-----

"Dennis" wrote
I have a combo box that displays three related pieces of
data. Grade1, Grade2 and Rate. I update the Rate field

in
my form with this combo box. What I would like to do is
transfer the other related pieces of data in this combo
box to update the two other fields in my form also

called
Grade1 and Grade two with the same combo box and at the
same time I choose the Rate. To clarify, when I select

the
Rate combo box I want Rate to update, Grade1 to update

and
Grade2 to update all in one combo box selection. Is that
possible? If so how can I do it?

Hi Dennis,

Sure...piece of cake. 8-)

In AfterUpdate event of combobox,
just assign

-- combobox.Column(1) to
textbox for that column (Gradex)
-- combobox.Column(2) to
textbox for that column (Gradey)


For example, cmboRate, bound to [Rate]
has controlsource like

SELECT [Rate], [Grade1], [Grade2] FROM yourtable;

[Rate] will be cmboRate.Column(0)
[Grade1] will be cmboRate.Column(1)
[Grade2] will be cmboRate.Column(2)

On your form,

txtGrade1 is bound to [Grade1]
txtGrade2 is bound to [Grade2]

So, in AfterUpdate event of cmboRate

me!txtGrade1 = me!cmboRate.Column(1)
me!txtGrade2 = me!cmboRate.Column(2)

the column # will be determined by the order
they appear in your controlsource select query,
so may be different than above.

Please respond back if I have misunderstood.

Good luck,

Gary Walter


.

 




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


All times are GMT +1. The time now is 03:35 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.