473,320 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Populate 2nd Form Control and Table

Using Access '97

Hi there, am wondering if someone can please help me with the following:

I have a master table (T_INVESTIGATION) that contains the following fields as well as other fields.

T_INVESTIGATION
LOC_CODE,
STR_ADDR,
CITY,
STATE,
ZIP_CODE
COST_CTR,
SITE_LOC

I also have some LOOKUP tables that are linked to T_INVESTIGATION fields
LT_LOC_CODE
LT_STR_ADDR
LT_CITY,
LT_STATE,
LT_ZIP_CODE
LT_COST_CTR,
LT_SITE_LOC


I have a lookup table associated with each of the 7 field listed above. I have been asked for the following:

1) Set up the form so that when someone clicks on the LOC_CODE control on the form that the STR_ADDR, CITY, STATE and ZIP_CODE all populate automatically so the end-user doesn't have to make an entry for the STR_ADDR, CITY, STATE and ZIP_CODE. After making the selection, by all means, all controls MUST populate the information into the T_INVESTIGATION table fields accordingly for each record.

2) Set up the form so that when someone clicks on the COST_CTR drop-down control (which is tied to the LT_COST_CTR lookup table) on the form that the SITE_LOC control populates with a listing according to the selection the end-user makes. Both of these need to be populated into the T_INVESTIGATION table fields as well for each record.

In other words, if I select COST_CTR 100 from the drop-down list, I will only see SITE_LOC ( 12, 13, 14, 15) and therefore, I make my selections of COST_CTR = 100 and SITE_CTR = 12 and these selections get populated in the T_INVESTIGATION table in the two different fields. If I select COST_CTR 200, I will only see SITE_LOC (22, 23, 24, 25) and therefore, I make my selections of COST_CTR = 200 and SITE_CTR = 24, and of course these get populated as well into the T_INVESTIGATION table in the two different fields.

I hope this is described clearly enough for someone to help me.

Thank you VERY MUCH
Aug 20 '07 #1
1 1735
MMcCarthy
14,534 Expert Mod 8TB
The first thing you need to do is add STR_ADDR, CITY, STATE and ZIP_CODE to the LT_LOC_CODE table. If they are related and dependent on LOC_CODE they should be in the same table.

Once you have done this then the values shouldn't be also stored in the T_INVESTIGATION table as this is duplication of information. You will need to follow similar rules for the COST_CTR.

Have a look at this tutorial on Table Structures.

Database Normalization and Table Structures
Aug 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
1
by: John Phelan-Cummings | last post by:
I'm not certain if this made the post. Sorry if it's a repeat: Using a Button to take an autonumber from one form to populate another autonumber field on another form. I have a Mainform "A"...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
2
by: Junior | last post by:
Hi All, I haven't got a response for this question lately and i really need to get this done ASAP. I have a .aspx page that has table two column four rows on it. 1. How do i use codebehind C#...
4
by: Mori | last post by:
I am using masterPage and I need to populate a textbox that is in a content control with data from popup page that is not part of the master page. This code works if no masterpage is involved. ...
1
by: dmeyr | last post by:
Hello, I am new to Access and am having difficulty with a Dlookup function. I have a form that I wish to autopopulate 10 fields with values based on two criteria which are also fields on the form....
3
by: David | last post by:
I am trying to use Dlookup to populate a text box on a form, but haven't had any good luck so far. I've looked here at the posts and have used the Access help for examples. Northwind is way over...
11
by: alphaomega3 | last post by:
I have a form called frmIlogEntry. this form is based on the table tblILOG. I have a fields in the table and on the form VendNo and VendName. On the form I want when the user types in the VendNo...
4
by: whamo | last post by:
I have the need to populate a field based on the selection in a combo box. Starting out simple. (2) tables tbl_OSE_Info and tbl_Input; tbl_OSE_Info has three fields: Key, OSE_Name and OSE_Wt...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.