473,385 Members | 1,848 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.

setting up an "Accounts Receivable" db

I have my tables 1 for client personal infor, 2 post charges, 3 post payments.
I need to have a aging report base on dates, then print out a statement.
Apr 16 '10 #1

✓ answered by NeoPa

That is something we can work on. We may need to ask for a little more info and maybe testing feedback, but we're on our way at least.

I'm not sure here where aggregate functions come in and what they can reference correctly without access to an example, which I don't have to hand. I know subforms can be freferenced in a number of ways. Your example will not work as posted. This may be for various reasons - The most likely of which is that you haven't copied your code across accurately. Workable ways are shown in Referring to Items on a Sub-Form. I suggest you copy and paste the actual formula you have at this time. I'd also be interested to see the actual formula for something that correctly references the controls, even though it doesn't manage to aggregate or sum them.

What we need to look at first is whether a control outside of your subform can aggregate (EG. Sum()) the values referenced in the controls found within the subform ([Charge Amt] & [Pymnt Amnt]). I suspect not, but let's get a test done to confirm before proceeding.

If it cannot, then the next thing to try would be to create a new textBox control in the subform's footer section (Ensure Form Header/Footer visible from the View Menu). This control may be hidden if preferred. The formula sums the subtraction of the two controls in the Detail section (=Sum([Charge Amt]-[Pymnt Amnt])). All this is within the subform at this stage. For the purposes of reference, we'll call this control [txtTotProfit].

This new control ([txtTotProfit]) should now be referenced directly by the control you are currently trying to set up to show the value on the main form.

5 4583
NeoPa
32,556 Expert Mod 16PB
There seems to be no question here.

You should understand that we don't work on the basis of a free resource to do your work for you. We can answer specific questions and even give advice where appropriate. If you feel that can be helpful to you then I suggest you post what you had specific problems with after you started trying to implement your project.
Apr 20 '10 #2
@NeoPa
OK, How do i create a calc field outside of the pages where the totals are?
Apr 21 '10 #3
NeoPa
32,556 Expert Mod 16PB
OK, How do i create a calc field outside of the pages where the totals are?
Frankly this is little clearer, with no context worth speaking about. Context normally allows us to guess what people are unable to express properly.

My best guess is you're asking about calculated controls in a report where the results are in a separate section from the controls (or maybe fields) they are referencing.

Firstly you should know that fields (data from the underlying record source) are not accessible to formulae in report controls. Only values from controls can be referenced. Aggregate functions (Sum(), Max(), Avg(), etc) can only be used in total sections.

More than that I cannot say without a clearer, more meaningful question.
Apr 21 '10 #4
I have a subform that has "Charge Amt" & "Pymt Amt" fields on the (datasheet view) form.
On the main form I need a grand total of the amounts listed on the subform (Charge Amt - Pymt Amt). Can't pick it up! Using 2007 Access..
I put = [frm detail].[Form}![Charge Amt] this will pick up one line item (there will be several chargs) I need the totals. Same goes for the Pymt Amt
Apr 22 '10 #5
NeoPa
32,556 Expert Mod 16PB
That is something we can work on. We may need to ask for a little more info and maybe testing feedback, but we're on our way at least.

I'm not sure here where aggregate functions come in and what they can reference correctly without access to an example, which I don't have to hand. I know subforms can be freferenced in a number of ways. Your example will not work as posted. This may be for various reasons - The most likely of which is that you haven't copied your code across accurately. Workable ways are shown in Referring to Items on a Sub-Form. I suggest you copy and paste the actual formula you have at this time. I'd also be interested to see the actual formula for something that correctly references the controls, even though it doesn't manage to aggregate or sum them.

What we need to look at first is whether a control outside of your subform can aggregate (EG. Sum()) the values referenced in the controls found within the subform ([Charge Amt] & [Pymnt Amnt]). I suspect not, but let's get a test done to confirm before proceeding.

If it cannot, then the next thing to try would be to create a new textBox control in the subform's footer section (Ensure Form Header/Footer visible from the View Menu). This control may be hidden if preferred. The formula sums the subtraction of the two controls in the Detail section (=Sum([Charge Amt]-[Pymnt Amnt])). All this is within the subform at this stage. For the purposes of reference, we'll call this control [txtTotProfit].

This new control ([txtTotProfit]) should now be referenced directly by the control you are currently trying to set up to show the value on the main form.
Apr 23 '10 #6

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

Similar topics

3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
4
by: Patrick | last post by:
I'm writing a winforms database application in C#. I've come across a lot of stuff lately about "N-Tier" architecture. Can anyone give me a simple explanation of N-Tier? The descriptions that...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
2
by: AC [MVP MCMS] | last post by:
Having a heck of a time trying to create a ton of AD user accounts in a specific OU without having the users be forced to change their password upon a successful login. After creating the...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
4
by: lawrence k | last post by:
I've a file that starts like this: <form id="pdsForm" method="post" action="/mcControlPanel.php" class="mcForm" charset="UTF-8" enctype="multipart/form-data" > and it contains this input: ...
0
by: James M. | last post by:
I have a Win 2ksp4 Server which I need to get a service started with a different login account other than the "Local System account". The service starts just fine with the "local system account",...
3
by: weird0 | last post by:
I have two tables accounts and ATM and i am trying to insert a tuple in ATM with accountId as foreign key. But even this simple work,I encounter the following error: The INSERT statement...
2
by: Gilberto | last post by:
Hello Iam about to finish my first DB and i was wondering about security, which is the easiest way of creating "user accounts" with passwords and restrictions???? Thanks
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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.