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  

Auto populate a text box on basis of a combo box selection



 
 
Thread Tools Display Modes
  #2  
Old March 25th, 2006, 01:17 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Auto populate a text box on basis of a combo box selection

On 24 Mar 2006 14:46:36 -0800, wrote:

Thanks John, It is just that I am storing some fields from the Student
table to my main database, and yes the text boxes are bound to the main
db..Is this going to create a problem?


Yes, it certainly will!

Relational databases use the "Grandmother's Pantry Principle": "A
place - ONE place! - for everything, everything in its place".

What if you store a student name in the Students table, and then store
the same name (with the same ID) in the "main table"?

No problem, you say - other than the waste of disk space - but then
the student's family changes the family name, or they move to a new
address. Now you have to track down everyplace that student's name or
address was copied and correct it.

Store the name ONCE, and once only, in the student table where it
belongs; you can use a Query joining the "main table" to the Student
table by StudentID to determine the name and other info about the
student. You can *display* the name on a Form by using a combo box
(bound to the StudentID but displaying the name, or by using unbound
textboxes with Control Source =cboStudentID.Column(n)) but you should
not store it. This is FUNDAMENTAL to how Access or any relational
database works!

My db is going to be used by
100+ users at anytime. So what are the other precautions I should take?


Be sure you understand how relational databases work. If you've made
this error, you may be making others, I don't know! Check out the
Database Design 100 and other resource links at:

http://home.bendbroadband.com/conrad...resources.html

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit/Add record in form from cmdButton doodle General Discussion 3 December 28th, 2005 04:06 AM
Newbie table Layout (Posted as suggested by Tom Lake for feedback) Little Penny Using Forms 2 December 25th, 2005 05:44 PM
Word applies direct format on File open Uriel General Discussion 16 November 27th, 2005 08:22 PM
Is Access even the right idea? BMB New Users 19 November 21st, 2005 09:01 PM
Populate a text box based on the selection of a combo box. Itman79 Using Forms 5 September 11th, 2005 05:12 PM


All times are GMT +1. The time now is 12:26 PM.


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