To expand on the other response, the After Update event of the list box
could have something like this:
Me.BookNumber = Me.ChooseDel.Column(1)
This assumes ChooseDel is the name of your combo box, that you are in the
form Updated Record Card August 2008, that Column(1) is the Book Number, and
that BookNumber is the name of the Book Number field in the form's record
source.
I will use the name txtBookNumber for the text box bound to the BookNumber
field. You should be able to use BookNumber (the field name) as the Control
Source for txtBookNumber (the text box). After making a list box selection,
the BookNumber column will be written to the BookNumber field.
If you use the form's Before Update field you will probably want to leave
the control source for the text box set to:
[ChooseDel].Column(1)
A couple of concerns. Your form is numbered to reflect a specific month.
Do you intend to create a new form every month? Do you have separate tables
or queries for each month? If so, there is a problem with the design.
Also, it may not be necessary to store BookNumber, etc. If a BookNumber is
associated only with a specific BookRef you can continue to display the
information as you are doing now. If you can see it every time you look at
the record there is nothing to be gained by storing it again.
Amanda Book Girl said:
Thanks - the control source for the 3 additional text boxes show like this
:
=[Forms]![Updated Record Card August 2008]![ChooseDel].[Column](1)
but i want that value to then be bound back to the field on the table
Is this possible ?
Klatuu said:
First, lets get the terminology down.
Fields belong to tables.
Controls belong to forms.
Each control on a form has a property named control source.
If the control source of a control has the name of a field in the form's
record source in it, then it is a bound field and the value entered in
the
control be will saved in the record. When you navigate to an existing
record, the value currently in the field will be displayed in the
control.
So, the short answer is if you are entering values in controls on your
form
and these values are not being saved in the table that is the record
source
for your form, then the controls are unbound.