subtracting field value another

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » Subtracting on field value from another

Subtracting on field value from another

resolvedResolved · Medium Priority · Version 2003

Lee has attended:
Excel Advanced course
Access Introduction course
Access Intermediate course

Subtracting on field value from another

I would like to deduct the value of one field from another in a query. The information is in two different tables within the query.
How do I do this???

Regards,

RE: Subtracting on field value from another

Hi Ross,

Thank you for your question.

The two tables should be linked first.

Create a query and insert the appropriate fields needed for the new calculation. In the next available blank field type the name of the new calculated field followed by a colon to show that is the end of the field name:

e.g. LengthOfService:[HireDate]-[FinishDate]

After you have type the formula in make sure you click the Show checkbox.

I hope this answers your question.

Regards

Simon

Tue 29 Sep 2009: Automatically marked as resolved.


 

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips


Server loaded in 0.09 secs.