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

Using a Query field in a form

I have a query that performs a simple sum, a running total
essentially. I want to be able to use that in a calculation in a form
but I can't seem to get it to display anything beyond #Name?

Structure -

Table A feeds the primary form, recording particulars about a mailing
and calculating costs
Table B feeds a sub-form, line items to track individual expenses in
the mailing

Table B query sums the expenses based on their relationship to the
records in Table A

I want to use that sum in the primary form on a few other
calculations, for example adding it to the total costs of the other
expenses and dividing it by the number of recipients for a mailing to
provide a per-package cost.
Can someone advise me on the best method of doing this? I understand
that this is likely not a new problem or revolutionary, but I am
teaching myself Access and am having trouble determining what exactly
to search for in groups.
Thank you!

Steven

Aug 30 '07 #1
2 1513
On Aug 30, 4:00 pm, sbit...@gmail.com wrote:
I have a query that performs a simple sum, a running total
essentially. I want to be able to use that in a calculation in a form
but I can't seem to get it to display anything beyond #Name?

Structure -

Table A feeds the primary form, recording particulars about a mailing
and calculating costs
Table B feeds a sub-form, line items to track individual expenses in
the mailing

Table B query sums the expenses based on their relationship to the
records in Table A

I want to use that sum in the primary form on a few other
calculations, for example adding it to the total costs of the other
expenses and dividing it by the number of recipients for a mailing to
provide a per-package cost.

Can someone advise me on the best method of doing this? I understand
that this is likely not a new problem or revolutionary, but I am
teaching myself Access and am having trouble determining what exactly
to search for in groups.

Thank you!

Steven
You haven't included your query, or a detailed description of your
table structure, so the best I can do is recommend that you test the
query out as an actual query first, before assigning it to a screen
control.

Aug 31 '07 #2
On Aug 30, 4:00 pm, sbit...@gmail.com wrote:
I have a query that performs a simple sum, a running total
essentially. I want to be able to use that in a calculation in a form
but I can't seem to get it to display anything beyond #Name?

Structure -

Table A feeds the primary form, recording particulars about a mailing
and calculating costs
Table B feeds a sub-form, line items to track individual expenses in
the mailing

Table B query sums the expenses based on their relationship to the
records in Table A

I want to use that sum in the primary form on a few other
calculations, for example adding it to the total costs of the other
expenses and dividing it by the number of recipients for a mailing to
provide a per-package cost.

Can someone advise me on the best method of doing this? I understand
that this is likely not a new problem or revolutionary, but I am
teaching myself Access and am having trouble determining what exactly
to search for in groups.

Thank you!

Steven
BTW, since you are new, you may not know that DLOOKUP( ) does the same
thing (a little slower though).

Aug 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MX1 | last post by:
I have a query written in MS Access that has a few calculated fields. Is it possible to refer to that query in a form field. I'd like the form field to show the sum of one of the columns from the...
3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
2
by: Marc | last post by:
I'm back in the Access development mode and seem to have forgotten how to do 2 things that should be simple. I have a database with a table of contacts, companies and activities. The idea is that...
0
by: Jason | last post by:
I have a primary form which is used to enter/edit data in a table named Test_Results. On this primary form there is a subform which displays site addresses. This subform is linked to the primary...
0
by: Jason | last post by:
I would like to be able to place a command button on a primary (parent) form that opens up a subform. I want to use this subform to search for or limit the recordset of data in the primary form. ...
2
by: Jason | last post by:
I am trying to create a simple database, but it's proving too complex for me!!! I have only just started a new database and am trying to have two fields in a table: the first holding the first...
4
by: Jimmy | last post by:
I have a form with a command button on it that is supposed to open up a report and use a query to populate it. DoCmd.OpenReport "rptMailingList", acViewPreview, "qryMailingListChristmas" ...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
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...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.