Megan
First, you may not need two tables with the same data (equipment name,
description, manufacturer). This is what you'd do in a spreadsheet, but it
is counter-productive in an Access database.
Next, if you want folks to ONLY pick from a list of available items (e.g.,
equipment), use a combo box on your form. You can limit the combo box to
what is available in its source list, and you can use a query to find all
the items that comprise that source list.
If you want the form to display additional data (like description,
manufacturer) after a particular piece has been selected, one way to do this
is to add something like the following in the AfterUpdate event of the combo
box:
Me.txtDescription = Me.cboYourEquipmentControlName.Column(1)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14066
Me.txtManufacturer = Me.cboYourEquipmentControlName.Column(2)
Several things to note:
1) use YOUR controls' names, not the ones I used in the example
2) the .Column(n) syntax is "zero-based", and refers to the columns in the
query that serves as the source for the combo box list ... sort of! You
have to start counting columns at "0", "1", "2", ...
3) you do not have to and SHOULD NOT bind the txtDescription and
txtManufacturer controls to those fields in the table. These two controls
are for display purposes only, to remind the user what those values are for
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=14066
the Equipment they've selected. Again, as a relational database, there's no
need to store something like description and manufacturer more than one
time.
Regards
Jeff Boyce
Microsoft Office/Access MVP
"Megan"
wrote in message
news:A652F887-F485-4E97-9794-9B299781B74F@microsoft.com...
> Hi,
>
> I am VERY new to Access and trying to do something way beyond my skills.
> Can anyone help me out with the Afterupdate event?
>
> I have a table called equipment_name that has separate columns for the
> equipment name, description, and manufacturer. I have another table
> called
> equipment that has this list, plus other information about specific pieces
> of
> equipment (the serial number is the unique identifier).
>
> I would like to have a form for the equipment that when you enter in the
> equipment name, the description and manufacturer automatically fill in.
> That
> way mistakes will (hopefully) be limited. If I can "fix" those so they
> cannot be changed as well, that would be good.
>
> Thanks,
> Megan