×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Calculations in forms

Calculations in forms

Calculations in forms

(OP)
I have to teach a class in Access, which I do anyway, but this is more complicated. How do I create calculations in a form? Easy in a query, but in a form?

RE: Calculations in forms

Hi Chark,

much the same way!

add a textbox set it's control source (use the expresion builder,.. if you must ) same applies it has access to the data items available in the record set and other controls.

you may also need to use the .recalc method to dynamically update the results (avoid cicular references!)

then you have it, this is ok but queries are better as the record source has the calculations already done. (if you have a multi record subform you will see a lag between when the form is displayed to when the controls are updated!

as in queries the data source can also be a function, the same applies they are bound controls so you cant change/enter data into them.

HTH

Robert Dwyer
rdwyer@orion-online.com.au

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close