Inputting A Calculated Value Into A Table?

Oct 27, 2013

I have a form where it is necessary for the user to input number of tanker loads, however I would ideally like the table to store the information in m3 which means multiplying whatever the user inputs by 11.3.

My plan was to use an unbound textbox for the user to input the "number of loads" into, then use a query to calculate the value and then a Dlookup to update the value of a control which will be hidden somewhere on the form. I got as far as making the query however then realised that it won't let me add an unbound textbox to a query in order to form an expression. I'd like to stay away from the inbuilt "calculated field" option just in case i need to downgrade to an earlier version than 2013 at some point.

View Replies


ADVERTISEMENT

General :: Combo Box Referencing One Table - Inputting Value From Different Table

Jul 11, 2013

I am trying to use a combo box to select the Company in an input record form for my Transactions. In the Transaction table, each record contains the Company ID, but not the company name (I have a relationship with a Company ID primary key in a separate table that has all the companies information).

I would like to be able to select the proper company in the combo box and have the form save the value as the Company ID number with the rest of the input data in a record (it will then refer to the correct company name in the other table if I query it because of the ID key).

View 3 Replies View Related

Multiple Forms Inputting To One Table

Aug 24, 2004

I'm making a large database. There are over 100 questions per "chapter" of the data I need to enter. The forms aren't large enough to accept everything at once so I broke up the chapters into a few smaller forms. The problem I'm having now is it saying "you can't go to the specified record" whenever I enter the same company name in two of the forms for the same chapter. The company name is the primary key. How can I make it so the techs can go from page to page without breaking up my tables?
Thanks in advance.
Sean Sturts (USMC)

View 3 Replies View Related

Forms :: Inputting Data Into A Form And Getting Multiple Table Entries

Jul 3, 2014

I'm fairly new to access and have been tasked with fixing a database that to my knowledge is built incorrectly but due to budget constraints and the time it would take to build a new one, we have to stick with this one. Here's my problem, in the database is a form that we use to create new entries in a table but when I try to create a new entry through the form, it creates multiple entries in the table with the rest of the data split between all the new table entries. Is this something that is caused by us moving over to the most current version of Access? Is there a way to fix this problem given the software we are using? At one point I had recreated this table because we had been having issues with other aspects of the database (security deposits were not being updated when entered through this form).

View 14 Replies View Related

Sort After Inputting

Jul 17, 2005

i gt this prob here
i gt one main table...taking in a text...
I gt like 4 sub table...which i will have to take in the text from the main one...then sort them into the different table...currently trying to do this via forms...can someone tell me if it is possible...?

Example...
There is this index which user input A123456
I am supposed to put this text into the table which is supposed to contain AXXXXXX text...hw am i supposed to do that?

View 1 Replies View Related

Inputting Info. Onto Report

Nov 26, 2007

Hello,

I am creating a database for a user that has a health & safety report form on paper that he would like replicated on screen on a form that he could fill in. Is there a way to do this? If not any ideas of which way to go from here would be much appeciated.

Thanks in advance for any help

Craig

View 3 Replies View Related

Updating Field When Inputting Into Another????

Feb 2, 2005

Hi there

I have a database that has two tables.

Table 1 is called applications and table 2 is called contacts.

Table 1 has two fields that relate (not through the relationships) to table 2.

These fields are named thus: Officer and ContactTelephone

Through a form I wish to be able to do the following.

When I choose the Officer from the drop down box (combo box tied into Table2) it will then automatically put in to ContactTelephone the necesary number.

It MUST drag the info from Table 2 and place in to Table 1.

Any ideas :confused:

Thanks :D

Jools

View 7 Replies View Related

Inputting Data Text Box To Several Tables

Jan 10, 2006

I am trying to link the textboxes on a form so that their values are stored in 2 seperate tables.
Setting the Record Source of the Form to TableA and the various Text boxes etc are set to the Fields in that table works fine, however I want some other text boxes to be linked to another set of table fields, so that when I enter values into those text boxes the data ends up in a different table.

Has anyone any ideas on how text boxes on one form can be linked to different tables.


dave

View 3 Replies View Related

Forms :: How To Get SUM To Display After Inputting Value Of Textbox 1 And 2

Oct 29, 2014

I am working in Access 2007. I have a form with 3 text boxes of which I need the Textbox3 to calculate a SUM of the input values from Textbox1 and Textbox2. These text fields will compute ONLY when the record is saved OR if there is a prepopulated value in the text field. EX. When textbox1 is populated with a value when I Openform, then as I input a value into textbox2 I immediately see the SUM in textbox3. Works great in this scenario. However, if both textboxes 1&2 are null, and I input a value into each, then I won't see the SUM in textbox3 UNTIL I save record.

How can I get the SUM to display after inputting the value of my textbox1&2?

View 3 Replies View Related

Tables :: Make Calculated Field In One Table That Calculates Values From Another Table Linked By Order ID

May 13, 2015

I have what is probably a stupid question but I've been struggling with this one for a while. I have an ordering database which has an Orders table (containing Order ID, Date, Supplier etc) and an Order Line table within which I have a combo box for Product name, supplier, price, VAT rate, Line price etc. At the moment, I have the order line table as a subform within the Order form (run from the Orders table). The problem I'm having is the subtotal and total fields. At the moment these are in the Order Line table as I cannot figure out how to get these in the Orders table. In summary, can I make a calculated field in one table that calculates values from another table (linked by Order ID)?

View 3 Replies View Related

General :: Adding Two Numbers While Inputting The Information?

Apr 1, 2014

I have a database where on the form we are just put in total deductions. We want to make sure that the total deductions is correct so while we are entering this number we want to do an excel thing by hitting = 1 + 1. Anytime we do that we are getting an error message. I really didn't want to have to set up a table to store these different amounts because we really only need the total. Is there a way to do that? I changed the format from currency to general but I'm still getting the error.

View 2 Replies View Related

Forms :: Combobox With Restriction For Inputting Text

Nov 4, 2014

I have a question about for combobox. I have a field from my tables that a text only then I make in the look up property field to become combobox then row "source type is a value list" then,"Allow value list edits, I make it Yes". then in the form its possible for me now to add value list in the combobox. but I want that what ever I input to become a value list, that's all they can select for the value of that field. if they can type or add not listed in the value list I input, it will not possible & there's a msgbox will appear mentioning the "the value you input is not in the list..

View 2 Replies View Related

Forms :: Shortcut For Inputting Date Value In A Form

Mar 10, 2014

If memory serves me right, I've seen code or maybe a shortcut somewhere for inputting a date value in a form along the following lines.

To input today's date, input "0"
Yesterday = "-1"
A week ago = "-7"

and so on.

View 6 Replies View Related

Modules & VBA :: Clearing Textbox After Inputting Wrong Data

Nov 5, 2013

I my form i have a textbox into which the user can enter a value that will serve as criteria in a query.

In the beforeupdate of this textbox there is a check about the validity of the input. If this input is wrong, a message tells the user what's wrong .

In such a case i like to cancel the event but in the same time clearing the textbox.

Canceling isn't a problem, but automatically clearing the wrong input seems not to be so evident.

How can i do that ?

View 5 Replies View Related

Query Results Differ Between Directly Inputting Parameters And Using [Insert]

Sep 12, 2007

I am having a problem getting any results from a query written with a msgbox parameter in the criteria. My query is supposed to look up a project number, and then report various information regarding that number. Here is my problem.

If I type the project number directly in to the "Criteria" cell in Design View it pulls the appropriate results. However, when I put [Enter Project Number] in the "Criteria" cell and insert the same number into the msgbox when I run the query I get no results at all. Any ideas?

View 2 Replies View Related

Reports :: Produce A Report By Inputting Parameter Into Text Box On A Form

May 24, 2013

I am very new to access, any way that I can have a popup box appear when I ask to produce a report and I can type in a parameter of my choice and it will produce a report based around that parameter?

I have a table that is directly linked to an excel spread sheet that is updated each week external to the database. I have to produce reports on the data contained in that table.

I have already produced reports that look for specific number and those reports are produced automatically.

I was wondering if there was some way I could open a form and type a number into a text box and it would produce a report around that number. e.g. "list all engines below X margin" and I can type any number in representing X and a report would be produced.

View 9 Replies View Related

Forms :: Stop Access From Creating New Record When Inputting Data In Field Or Tab

Dec 17, 2013

How do you prevent access from adding a new record when u input data in the current record or tab to the next field? My database is set up to open with a form where the user picks his name and then a week ending date once that is complete u open a new form where the name and date auto populate along with other fields to fill out such as job charge, charge type , times charged for each day of the week. But I don't want access to create a new record everytime the person inputs or tabs..... .

I have attached my database for better clarity!

View 9 Replies View Related

Calculated Field In A Table?

Nov 12, 2004

Hi folks,
Is there a way to have a calculated field within a table? I have a table that I've added four fields to: AmountIT, AmountRE, AmountKK, AmountRes. I want to be able to sum these four fields to give AmountTotal, but is there a way to have in a table?

View 8 Replies View Related

Help Please Calculated Field In Table Or Other?

May 23, 2005

Im not sure the best way to go about this and would be most grateful if I could be pointed in the right direction.

If I had a table called tblEmployee and a field within it called "PayRate" and another table called tblHours with a field in it called "LabourCost" and a field called "Hours". What is the best way to hold the "LabourCost" value so it doesnt get affected if someones "Payrate" is changed.

I expect I have asked this all incorrectly and I really do apologise.

Many thanks in anticipation... :)

View 4 Replies View Related

Can A Default Table Value Be A Calculated Value?

Jun 23, 2005

Hi all,
I have a table...

Amount........Wholesale...........Commission

Lots of other columns but they don't come in to play.

When an Amount is entered, can Wholesale and Commission auto populate with Amount*.9 and Amount *.1 using default values in the table definition? I couldn't quite get the expression builder to understand.

If it can't, how should I get it to work? Forms are OK. As is code.
Thanks
PB

View 2 Replies View Related

Is It Possible To Have A Calculated Field In A Table?

Mar 31, 2006

In an orders table, i want to have a total value calculated... in the table... i was only able to do that in a query... but is it possible to do so in a table?

View 6 Replies View Related

Calculated Control Into Table

Jan 31, 2006

Is there a way to get a calculated Control of a form to end up in the underlying table?

View 2 Replies View Related

Add Calculated Field To Table

Oct 12, 2015

I am calculating a field fldD. I have added the following to the Control Source of fldD "=[fldA]+[fldB]+[fldC]"

Can I save the value that is created back to the table i.e. fldD will be the value of =[fldA]+[fldB]+[fldC]

View 1 Replies View Related

Need Help With A Calculated Expression/data Table.

Mar 30, 2007

I am very inexperinced with Access, please be kind.
My problem is that from the form view the simple division of 2 #'s are placed in the correct text box I selected, but I am unable to get the value to enter into the data table. Please help.

Thank you

View 4 Replies View Related

Storing Calculated Fields In A Table

Apr 20, 2007

I know that it is bad form to store a calculated field in a table - normalization and all that - but I can see no other way around a need that I have.

I'm trying to make a database to store injury time for employees. If an employee is injured, he can do light work for a certain amount of time, but this light work need not be contiguous. But, the total time on light work must be known so as to see when it is used up.

For example:

Bob is injured on 4/1/06 and goes on light work on 4/2/06 until 4/5/06 (4 days). Bob is then taken off light work until 4/10/06 when he reinjures the same injury. This does not count as a new injury, because it is an aggravation of the old one. So, Bob goes back on light work on 4/10/06 until 4/15/06 (6 days).

So, I need to store Bob's total time on light work for this injury (10 days) so that I can keep a running total to check against the maximum for a single injury. All I can think of is to store the sum of days on light work as a field in Bob's injury record, but that means storing a calculated field in a table.

Am I missing an easy way to do this, or is there a method to do what I want that I am just not aware of?

Thanx for any help!

View 2 Replies View Related

Storing A Calculated Field On A Table

Aug 10, 2007

Hi,

I know it breaks all the rules to store a calculated field on a table, but I've painted myself into a corner with the way I built this particular database, not good, I have repeating groups and basically the whole database is built this way. I need one form to store a calculated value on a table to solve a problem on a report that encapsulates the total of all the repeating groups. Before you start the lecture, I know I messed up, but this is way to far down the road to start over. Any help would be greatly appreciated.

Gary

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved