473,387 Members | 1,486 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,387 software developers and data experts.

Update single fields in multiple tables from one field in a form.

I’m working on my first major project using MS Access. MS Excel had been the program of choice before this. I work in the Operations department for a distribution company. We track daily performance at each of 5 warehouses locations. I have setup 5 identical tables, one for each location. The exception is the Canadian facility that also has a ConversionRate field. The table structure is:

Date (PK)
Day
Orders
Units
Sales
Transfers
UnshpdUnits
UnshpdDolrs
ConversionRate (Canada)

I have created a Form where I can enter all the data and was hoping not having to key the Date and Day field each time.

Can I create a field for Date and a field for Day in the Form that will populate to the 5 tables?

I believe that creating a separate table for each warehouse was the way to go vs 1 large one but, maybe that is not so. I will run weekly, monthly and yearly reports from the data collected.

Thanks!
Aug 25 '09 #1
1 3325
Stewart Ross
2,545 Expert Mod 2GB
You can append records to any table using SQL statements built in VBA code and executed in response to particular form events - but in many ways you have answered your own question when you have queried splitting your data into five identical tables. For your data, the warehouse location is merely another attribute to consider. There is no need at all to create 5 tables, one for each warehouse, as this makes data update and maintenance very laborious indeed. It also makes reporting and other day-to-day querying virtually impossible.

Ask yourself what would happen if you open another warehouse? Would you expect to have to add a new table, design new queries, modify your reports and so on just because you now operate in six locations?

You may well find the following article on database normalisation and table structures useful - it is an essential skill when designing databases. I would suggest it is even more important when moving to relational databases such as Access from the free-form structure of Excel!

-Stewart
Aug 26 '09 #2

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

Similar topics

1
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the...
4
by: Andy Proctor | last post by:
I hope there is an answer out there.... I have a simple database structured like this (non relevant tables and fields omitted) Members table memberID memberFname memberLname memberNokID
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
0
by: rayone | last post by:
Hi folks. I need advice. 2 options, which do you think is the better option to display/retrieve/report on the data. Keep in mind reporting (Crystal), SQL Performance, VB Code, usability,...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
3
by: jpr | last post by:
Hello, I know that this is not the rule but need some help. My datbase has three tables: MASTER TEMPLATES FORMS I have a form which is based on a table named MASTER. I have a primary key...
2
by: Brett | last post by:
My database has 2 tables: Table1 & Table2. If a field is not null on a record in table2, then the not null fields in table1 that correspond to the records in table1 needs to be updated to match the...
0
by: Access Programming only with macros, no code | last post by:
ERROR MESSAGE: Could not update; currently locked by another session on this machine. BACKGROUND I have the following objects: Table1 - HO (which has about 51,000+ records) Table2 -...
6
by: KevinPreston | last post by:
Hello everyone, this is my first post so apologies if i dont get it right first time, i am a self taught Access user, i am stuck on something i am trying to do, briefly i have 2 tables, one for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.