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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

2 x combo boxes



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2005, 09:53 AM
Nigel
external usenet poster
 
Posts: n/a
Default 2 x combo boxes

I need to set up a basic ordering form. In it I have set up a table
containing 'products'.

My products are patch leads which vary in price according to type and
length.

With two combo boxes in a form, one to select a product type and a second to
select the length, can a third text box find the price using these
parameters?

I have already set up a query to do this and have a Dlookup command that
finds my answer (see below) but it does not update immediately in the form
and needs an 'F9' refresh to update.

=DLookUp("[Cost]","[QryFibrecombo1]")

Am I making this harder than it needs to be? Is there a simpler solution?

Thanks


  #2  
Old April 28th, 2005, 01:14 PM
Ofer
external usenet poster
 
Posts: n/a
Default

You can write on the event of after update of each of the fields
price and length
me.price.requery
so you dont ned to press the F9.

"Nigel" wrote:

I need to set up a basic ordering form. In it I have set up a table
containing 'products'.

My products are patch leads which vary in price according to type and
length.

With two combo boxes in a form, one to select a product type and a second to
select the length, can a third text box find the price using these
parameters?

I have already set up a query to do this and have a Dlookup command that
finds my answer (see below) but it does not update immediately in the form
and needs an 'F9' refresh to update.

=DLookUp("[Cost]","[QryFibrecombo1]")

Am I making this harder than it needs to be? Is there a simpler solution?

Thanks



  #3  
Old April 28th, 2005, 01:17 PM
Al Camp
external usenet poster
 
Posts: n/a
Default

Nigel,
I'd try adding the Price (associated with length) into cboLength. For
example the first column contains the length and the second the price.
On the AfterUpdate event of cboLength...
Price = cboLength.Column(1)
(Combo box columns are numbered 0,1, 2, etc...)
Price control is bound to Price field in your table.
Whenever Length changes... so does Price.
hth
Al Camp

"Nigel" wrote in message
...
I need to set up a basic ordering form. In it I have set up a table
containing 'products'.

My products are patch leads which vary in price according to type and
length.

With two combo boxes in a form, one to select a product type and a second
to select the length, can a third text box find the price using these
parameters?

I have already set up a query to do this and have a Dlookup command that
finds my answer (see below) but it does not update immediately in the form
and needs an 'F9' refresh to update.

=DLookUp("[Cost]","[QryFibrecombo1]")

Am I making this harder than it needs to be? Is there a simpler solution?

Thanks



  #4  
Old April 28th, 2005, 04:12 PM
Nigel
external usenet poster
 
Posts: n/a
Default

thx,

I am a "noob" after all

this has done the trick

"Ofer" wrote in message
...
You can write on the event of after update of each of the fields
price and length
me.price.requery
so you dont ned to press the F9.

"Nigel" wrote:

I need to set up a basic ordering form. In it I have set up a table
containing 'products'.

My products are patch leads which vary in price according to type and
length.

With two combo boxes in a form, one to select a product type and a second
to
select the length, can a third text box find the price using these
parameters?

I have already set up a query to do this and have a Dlookup command that
finds my answer (see below) but it does not update immediately in the
form
and needs an 'F9' refresh to update.

=DLookUp("[Cost]","[QryFibrecombo1]")

Am I making this harder than it needs to be? Is there a simpler
solution?

Thanks





 




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
Confused about 3 combo boxes esparzaone New Users 1 April 28th, 2005 01:06 PM
combo question rob New Users 10 March 21st, 2005 02:05 PM
connecting combo boxes to yield data in another cell. TxN8tv General Discussion 0 March 14th, 2005 04:07 PM
VB Code help for combo boxes Cherish Running & Setting Up Queries 1 September 19th, 2004 08:38 AM
Synchronizing Multiple Combo boxes to view matching data on a Form Mark Senibaldi Using Forms 4 June 16th, 2004 08:48 PM


All times are GMT +1. The time now is 09:00 AM.


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