On Thu, 31 Jan 2008 08:17:01 -0800, SIRSTEVE
Please don't SHOUT AT US, Steve. Typing in all caps carries that implication.
Most of the people who come here want help; most of us who volunteer to help
do so without needing to be yelled at or pleaded with. A subject line like
this will put people off, not get more or better answers!
I have a database that I created that contains the following fields.
Date, Envelope Number, Name, Offering Type, & Amount.
Here's what I would like to be able to do?
I would like to enter the contributor's envelope number and have the
database automatically insert the name of the person who is associated with
this number into the NAME FIELD. Can this be done? If so, could anyone tell
me how?
Thanks for your help!
Don't.
That's not how relational databases work! They use the "Grandmother's Pantry
Principle" - "a place - ONE place! - for everything, everything in its place".
A contribution does not HAVE a name; a person does, but a person is one type
of entity, and a contribution is a different type of entity.
Your Envelopes table should have the EnvelopeNumber (don't use blanks in
fieldnames if you can avoid it) as its Primary Key, LastName, FirstName, and
other biographical information (don't use the reserved word Name as a
fieldname). That's the *only* place that the person's name should be stored.
If you want to *SEE* the person's name, you can use a Query joining the
donations table to the envelope's table; you can also use a Form Control such
as a Combo Box, storing the envelope but displaying the name.
If you're entering data directly into table datasheets... don't. That's not
their function. Tables are data storage repositories; use Forms to display,
enter and edit data.
You might want to check out some of these tutorials for how to use databases:
Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html
The Access Web resources page:
http://www.mvps.org/access/resources/index.html
A free tutorial written by Crystal (MS Access MVP):
http://allenbrowne.com/casu-22.html
MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials
John W. Vinson [MVP]