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

Calculated Info is not being recorded in the table.

Shnake
5
Hi,

Newbie question...or maybe OLDBIE question...I have not done any work in access since Windows 95 so I'm a bit crusty.

I'm trying to help out the misses and have put together a Db for her but I'm having a problem.

She would like the dates that people are eligible for insurance to be automatically generated based on the persons Employee Start date. This calculation is also contingent upon the person being either a FT Salary employee or a FT Hourly wage employee.

The problem I'm having is that the calculations from the form are not being saved in the table. How do I accomplish this?

Here is the calculation I am using.
=IIf([FT_Hourly] Or [FT_Salary],DateAdd("d",60,[Dateofhire]),Null)


Thank you
Sep 16 '15 #1
8 997
Seth Schrock
2,965 Expert 2GB
If this date doesn't change, then the best thing would be to have this date calculated in a query (per normalization rules, calculated fields should never be stored). If this is more like a default value, then this is fine.

Where do you have this calculation?
Sep 16 '15 #2
Shnake
5
It will not change.

The calculation is in the form field part of expression builder.
Sep 16 '15 #3
Seth Schrock
2,965 Expert 2GB
Since it won't change, then create a calculated field in a query with all the other fields that you need and then bind the form to that query. To keep from getting error message if someone tries to edit the value, I would set the Locked property of the textbox bound to this field to True.
Sep 16 '15 #4
Shnake
5
Ok I will try to figure out exactly how to do that...

Thanks a bunch...
Sep 16 '15 #5
Shnake
5
If it where a default value how would I do that?
Sep 16 '15 #6
Seth Schrock
2,965 Expert 2GB
Just put the formula that you posted in the OP in the Default Value property of your control
Sep 16 '15 #7
Shnake
5
OK Just Checked with the Misses...this is a DEFAULT value...how can I have that work?
Sep 16 '15 #8
Seth Schrock
2,965 Expert 2GB
Just as I described in post #7. However, you wouldn't do the query method.
Sep 16 '15 #9

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

Similar topics

1
by: Aaron_TekRecycle.com | last post by:
Anyone have anything like this? I don't care what data it is... I just want to see how to query the AD and place the data into a web page. thanks
1
by: andreyp#Antispam | last post by:
I need snapshot like snapshot for table but for only one application or transaction. Is't possible on productive server? Andy
1
by: rob | last post by:
I built a combo box that contains names of people. A user can chooses a person from the combo box, the next couple of the text boxes will show the corresponding address of that person. I used...
0
by: Alexander Cohen | last post by:
Im looking to get a bit of info from a tables column. Im looking for if the column is a primary key, im also looking for the columns constraints and its foreign key reference if it is one. How can...
3
by: Marina | last post by:
I am using Access 2002. I have a client transactions table with a field for HoursBilled, BillingRate, and AmountBilled. Amount Billed is a caluclation of HoursBilled * BillingRate. I can get...
3
by: Mamunul | last post by:
Hi all, I need your help i.e. I want to save some data to the respective table which is calculation in the FORM.
4
by: pb2000 | last post by:
Hello, I learn SQL Server from the beginning, being newbie in this field. I have exemplary table ID Device UsedBy From To...
6
by: Jane Alford | last post by:
Is there any way to dynamically get information about a table in Access 2007? I know I can do this with SQLServer. I'm linking to SQLServer tables from Access 2007. The SQLServer 2005 SELECT...
2
by: latifju | last post by:
I am new in access. Now I am using MS Access 2010. Problem: I have table named customer with 6fields as follow 1. ID 2. Name 3. Received 4. Paid 5. Balance 6. Date
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
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...

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.