473,411 Members | 2,129 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,411 software developers and data experts.

Form based calculation involving query results

I don't even think this is possible, but I wanted to make sure before I told my boss we need another solution.

Essentially he wants to do a Query by Form.

He would like to be able to type the goal into one of 4 fields, and then multiply what he types into the field by the result of another query.

Essentially it looks like this:

Forms!goal!txtRR*PTO![% of Max]

the % of Max is the result of another query.

Is this even possible? I know I can SEARCH for things based on text boxes in a form, but can you have a function based on data input into a form?

If not I'll try to find another solution but this is the way he would like to do it.

Thanks so much. You guys are always so helpful.
Apr 8 '08 #1
3 1691
MindBender77
234 100+
Essentially he wants to do a Query by Form.

He would like to be able to type the goal into one of 4 fields, and then multiply what he types into the field by the result of another query.

Essentially it looks like this:

Forms!goal!txtRR*PTO![% of Max]

the % of Max is the result of another query.
To answer your question: Yes, this is very possible.
You could have four unbound textboxes on a form for the goal. Another for the result of your other query. A final textbox for the end result.

After the one of the four goals has been entered, an Append query could add data to a temp table using criteria from the goals. A dlookup function could then be called to populate the next textbox. Finally, the last textbox could then be automatically populated with the end result.

The temp table would be purged on the Form Close event.

Hope this points you in the right direction,
Bender
Apr 8 '08 #2
missinglinq
3,532 Expert 2GB
Please remember to provide a meaningful Title for any threads you start! This helps to ensure that other members, and also the general public, will have a better chance of finding answers to similar questions. It is difficult for the experts to answer questions when there is not enough details provided to understand the problem.

Please take the time to read the Posting Guidelines, paying particular attention to Give a clear title to your question.

Thank you and Welcome to bytes!

Linq ;0)>
Apr 8 '08 #3
Thank you for your help! I really appreciate it.

And I will make sure my Form Posts have clearer titles. I do apologize.

Thanks guys! (and gals if applicable)
Apr 16 '08 #4

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
5
by: Aravind | last post by:
Hi folks. I have a form, frmHistory, that has the following code for its On Open event. =-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-= Private Sub Form_Open(Cancel As Integer) ...
1
by: Paolo | last post by:
Hello, I have a form based on a query that has four fields (a, b, c and d). The query get's its data from a table. The last field of my form is a calculated field (b*c/d). The field d is not in...
2
by: Robert | last post by:
I am trying to give the user dynamic search capabilities to select almost any record in the database from criteria they select. Everything seems to work except when I open the display form to...
4
by: vg-mail | last post by:
Hello all, I have identical design for form and report but I am getting calculation error on form and everything is OK on report. The form and report are build up on SQL statement. The...
9
by: Haas C | last post by:
Hi all! Is there anyway I can override a value in a calculated field on a form? For example: I have a form which displays the following fields based on a query: Premium Due field has the...
1
by: tomlebold | last post by:
Having problems displaying query results from combo boxes on a sub form, which is on the same form that is used to select criteria. This has always worked form me when displaying query results on...
9
by: jhawkins | last post by:
I'm working on Access 2000 at the moment and i've got a small problem in regards to coding a calculation involving a form and a subform. The form i have is called Player Overall Stats and the...
11
by: rajeevs | last post by:
Hi All I have two issues to put forward. First is bookmarking / or highlighting a particular record in a form. The form is continuous and the records are from a query result. One of the record...
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...
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
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...

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.