PC Review


Reply
Thread Tools Rate Thread

How can I set one field to return data into another field?

 
 
Terri
Guest
Posts: n/a
 
      4th Dec 2009
OK here goes, hope this is clear

I am wanting to set up a database where info is selected in one field and
then multiple fields are populated. EG entering username from drop down list
automatically fills in Name, Dept and Ext so save looking all those up each
time.

In excel I would use the lookup function and put formulae in each cell.
Is this possible in access? Any help greatly appreciated.
--
Thanks
Terri
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      4th Dec 2009
No need to populate all those fields in a second table. Just enter EmployeeID
using a combo sourced from Employee table and join the Employee table in your
query that feeds the form.
--
Build a little, test a little.


"Terri" wrote:

> OK here goes, hope this is clear
>
> I am wanting to set up a database where info is selected in one field and
> then multiple fields are populated. EG entering username from drop down list
> automatically fills in Name, Dept and Ext so save looking all those up each
> time.
>
> In excel I would use the lookup function and put formulae in each cell.
> Is this possible in access? Any help greatly appreciated.
> --
> Thanks
> Terri

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      4th Dec 2009
On Fri, 4 Dec 2009 08:07:01 -0800, Terri
<(E-Mail Removed)(donotspam)> wrote:

>OK here goes, hope this is clear
>
>I am wanting to set up a database where info is selected in one field and
>then multiple fields are populated. EG entering username from drop down list
>automatically fills in Name, Dept and Ext so save looking all those up each
>time.
>
>In excel I would use the lookup function and put formulae in each cell.
>Is this possible in access? Any help greatly appreciated.


The name, dept and ext fields should simply NOT EXIST in your second table.

Relational databases use the "Grandmother's Pantry Principle": "A place - ONE
place! - for everything, everything in its place". These fields should exist
only in the Personnel table (btw I'd use FirstName and LastName rather than
just Name); you can use Queries to link other tables to the personnel table by
EG, and you can use additional textboxes on a Form referencing a combo box.
For instance, if the Dept is column 3 in a multicolumn combo box (even if some
of the columns aren't visible) you can put a textbox on the Form with a
control source

=comboboxname.Column(2)

The column property is zero based so this will show the third column.

If you're working in Tables with Lookup fields... well, don't:

http://www.mvps.org/access/lookupfields.htm
--

John W. Vinson [MVP]
 
Reply With Quote
 
Terri
Guest
Posts: n/a
 
      8th Dec 2009
Thanks for your replies, I have followed what you have both said for me to do
and have the form now working BUT the data is duplicated on each record ie we
change record 3 and records 1 and 2 change to match record 3, have I missed
something on one of the settings. Thanks again for your help.
--
Thanks
Terri


"Terri" wrote:

> OK here goes, hope this is clear
>
> I am wanting to set up a database where info is selected in one field and
> then multiple fields are populated. EG entering username from drop down list
> automatically fills in Name, Dept and Ext so save looking all those up each
> time.
>
> In excel I would use the lookup function and put formulae in each cell.
> Is this possible in access? Any help greatly appreciated.
> --
> Thanks
> Terri

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      8th Dec 2009
It appears you did not bind the combo to a field.
Row Source is where the combo pull data from and Control Source is where it
is bound to store the data.
Bound Column is the field of Row Source that you store.

--
Build a little, test a little.


"Terri" wrote:

> Thanks for your replies, I have followed what you have both said for me to do
> and have the form now working BUT the data is duplicated on each record ie we
> change record 3 and records 1 and 2 change to match record 3, have I missed
> something on one of the settings. Thanks again for your help.
> --
> Thanks
> Terri
>
>
> "Terri" wrote:
>
> > OK here goes, hope this is clear
> >
> > I am wanting to set up a database where info is selected in one field and
> > then multiple fields are populated. EG entering username from drop down list
> > automatically fills in Name, Dept and Ext so save looking all those up each
> > time.
> >
> > In excel I would use the lookup function and put formulae in each cell.
> > Is this possible in access? Any help greatly appreciated.
> > --
> > Thanks
> > Terri

 
Reply With Quote
 
Terri
Guest
Posts: n/a
 
      9th Dec 2009
Thanks very much, that has now solved the problem for me - I was missing
changing the bound column selection. Thanks again for the replies.
--
Thanks
Terri


"KARL DEWEY" wrote:

> It appears you did not bind the combo to a field.
> Row Source is where the combo pull data from and Control Source is where it
> is bound to store the data.
> Bound Column is the field of Row Source that you store.
>
> --
> Build a little, test a little.
>
>
> "Terri" wrote:
>
> > Thanks for your replies, I have followed what you have both said for me to do
> > and have the form now working BUT the data is duplicated on each record ie we
> > change record 3 and records 1 and 2 change to match record 3, have I missed
> > something on one of the settings. Thanks again for your help.
> > --
> > Thanks
> > Terri
> >
> >
> > "Terri" wrote:
> >
> > > OK here goes, hope this is clear
> > >
> > > I am wanting to set up a database where info is selected in one field and
> > > then multiple fields are populated. EG entering username from drop down list
> > > automatically fills in Name, Dept and Ext so save looking all those up each
> > > time.
> > >
> > > In excel I would use the lookup function and put formulae in each cell.
> > > Is this possible in access? Any help greatly appreciated.
> > > --
> > > Thanks
> > > Terri

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Return a value entered in a sub form field to a field in main KARL DEWEY Microsoft Access Forms 1 18th Aug 2009 03:42 PM
How to add a return in a text box if second field has data amy2876 Microsoft Access Reports 7 18th Jun 2009 08:04 PM
Return a field in a query to a new field based on a produck SKU Caleb Microsoft Access Reports 1 5th May 2009 09:31 PM
Find last date in a field and return data from another field in that record TitanMan Microsoft Access Queries 2 6th Jun 2006 04:30 AM
Text box in field doesn't return same info as in query field it's based on denilynn Microsoft Access Forms 9 3rd Mar 2004 06:42 PM


Features
 

Advertising
 

Newsgroups
 


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