Re: Combination box
- From: "Evi" <evwool@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 May 2008 20:47:27 +0100
It might help you to give details such as name of combo box, name of table,
name of field for Produced Amount. it will make it easier for you to read
the code too. It also saves us having to assign names to them.
Since this is a simple coding problem, I assume you know how to use events.
So the code in the After Update Event for the combo will be something like
this
Me.ProducedAmount = (DLookup("[LookedUpValue]",
"DatasourceTable2","[WeekNumber]=" & Me.MyCombosName)
You'll need to put in the real names
You will need to decide what to do if there is nothing listed for that
WeekNumber in your datasource table - look up the NZ function for instance.
Evi
"Ticotion" <Ticotion@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5C75349C-39F8-4950-A88D-ED2D10D2E93E@xxxxxxxxxxxxxxxx
Hiform
I have a simple form coding problem.
I have a combination box that contains week numbers. Furthermore I have a
field for produced amount. When a user selects a weeknumber I want the
to find the value in the datasource tabel, so that the input in theproduced
amount field are saved here. Can you help me?
Thank you for your help and input
Ticotion
.
- Follow-Ups:
- Re: Combination box
- From: Ticotion
- Re: Combination box
- Prev by Date: 3 combox box on the form with rowsource
- Next by Date: Re: Adding an extra record base on value selected on current recor
- Previous by thread: 3 combox box on the form with rowsource
- Next by thread: Re: Combination box
- Index(es):
Relevant Pages
|