A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I save to a table from a form combo box?



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2008, 06:28 PM posted to microsoft.public.access.forms
Sasha
external usenet poster
 
Posts: 62
Default how do I save to a table from a form combo box?

I created a few tables. and with the use of combo boxes, I was able to
standarized the records that we used at the office.
Here is my problem.. I set up a table called Employee_Info which shows:
Employee file number, employee name, and employee last name...
what I want to do is just select the file number and let the other boxes
filled the blanks with the data. While on Form view... everything is
displayed accorndingly, but they are not being saved on the main table where
I want them to be stored

  #2  
Old June 24th, 2008, 07:34 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default how do I save to a table from a form combo box?

Need some more detail, please.
Do you have combo boxes for all 3 fields?
Are the comb boxes bound to fields in the form's recordset?
Is this for adding new records?
Does the user need to see the employee's name, or just the file number?

I know what is wrong, but I need to know all the above information to
provide you the correct answer.
--
Dave Hargis, Microsoft Access MVP


"Sasha" wrote:

I created a few tables. and with the use of combo boxes, I was able to
standarized the records that we used at the office.
Here is my problem.. I set up a table called Employee_Info which shows:
Employee file number, employee name, and employee last name...
what I want to do is just select the file number and let the other boxes
filled the blanks with the data. While on Form view... everything is
displayed accorndingly, but they are not being saved on the main table where
I want them to be stored

  #3  
Old June 24th, 2008, 10:50 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default how do I save to a table from a form combo box?

On Tue, 24 Jun 2008 10:28:00 -0700, Sasha
wrote:

I created a few tables. and with the use of combo boxes, I was able to
standarized the records that we used at the office.
Here is my problem.. I set up a table called Employee_Info which shows:
Employee file number, employee name, and employee last name...
what I want to do is just select the file number and let the other boxes
filled the blanks with the data. While on Form view... everything is
displayed accorndingly, but they are not being saved on the main table where
I want them to be stored


If you're trying to copy the employee first name, last name (surely you don't
have "Bill Jones" in one field and "Jones" redundantly in another field, do
you!?) from one table into another table... DON'T!

Relational databases use the "Grandmother's Pantry Principle": "A place - ONE
place! - for everything, everything in its place". The employee's personal
data (name, birthdate, etc.) should exist in the Employees table, *and noplace
else*. The only thing you need in other tables is a "foreign key" - an
employee file number, it seems - as a link to the employees table.

--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.