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

populating a field in the a table associated with a form and subform

1
Good morning
I have created a table with fields to be populated out of subforms attached to the main table form.
Each field in the main form is populated with the individual calculation os each subform subtotal. So far it works. But looking up the table all the fields are blank. The total of each individual subtotals is also shown on the main form. That works too. That total is linked to the same field name as in the table "itemcost" but that total too does not show on the table.
I am zero in VBA so I am only using the facilities of access 2016. What can I do to solve this issue? Thk u for your help.
Jan 10 '16 #1
1 861
zmbd
5,501 Expert Mod 4TB
> Before we get in to how to accomplish your goal, we really have an obligation to point out a few things:

+ Unless it is for regulatory or transient/mutable/one-time information (i.e. a special one-time discounted price on an item), storing calculated results is not normally recommended for 95% of situations. Instead, calculations are usually performed within the query on an as-needed bases.

+ The control source of a form-control cannot be linked to both a calculation and a table. There are various methods of transferring the calculated value; however, as above, this is not normally done.

+ Using sub-forms to fill in the data on a parent table suggests that there is an issue with your overall database design. I suggest that you take a few moments to read thru:
home > topics > microsoft access / vba > insights > database normalization and table structures

+ Check you Bytes.com inbox, I'll forward you a copy of a boilerplate with some resources. It's starting to be a bit dated with Acc2010; however, the core concepts and references are still valid :)

-z-
Jan 10 '16 #2

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

Similar topics

4
by: Don Seckler | last post by:
I am building an application to track the distribution and returns of copies of magazines. Copies of a magazine that are unsold are returned by the retailer to the wholesaler. They are...
2
by: chris vettese | last post by:
I've been having trouble with this for a long time. I have a form that has many subforms. In the subforms I have unbound text boxes in the footer that sum a field. I want to Display this sum on...
2
by: CSDunn | last post by:
Hello, In an Access 2003 ADP Subform, I am trying to set the BackGround color of three textbox fields (LSScore, RScore, WScore) in the current record of the subform to zero (black) if the value of...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
6
by: tlyczko | last post by:
I am working on an audits database. The main table, Audits, has an AuditID primary key. Another table, 1:1 relationship, ProgramAudits, has AuditID as a foreign key. I have a master/main form...
2
JaneDoe
by: JaneDoe | last post by:
Using ASP classic I have a change form which displays an image which the user downloaded from an add form. When the change program is first displayed the i populate the src="" with the url which is...
1
by: lupo666 | last post by:
Hi, I have a database with only one table containing the following fields: ID (primary key, auto-counter), Client (Text), Internal_ID (Text), Window (Y/N), Lock(Y/N), LED (Y/N) What I'm...
1
by: troy_lee | last post by:
I have a table (Table A). It has one field, a PK. It is in a 1:M with another table (Table B). I am having trouble with a form/subform setup to view the 1:M records. On the parent form, there is...
3
by: davenumber40 | last post by:
I’m creating a small database in Access 2003(XP) to track issues during software testing. As far as databases go, it’s going to be a relatively small, short term project (No more than 20,000 records...
0
sickenhoofer
by: sickenhoofer | last post by:
I am having some problems with a form and its subforms. It was designed to click on a list of numbers on a subform, which causes another subform's data to change to data relevant to the number...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.