×
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

Problem getting info from forms to tables!

Problem getting info from forms to tables!

Problem getting info from forms to tables!

(OP)
Hi People,

I need help. I have a table with a field - 'commissionvalue'.
I have a form with an input box - 'commission value' which is worked out from the input of two other boxes. This is calculated by an expression that I created in the expression editor but I can't work out how to post the answer back into the table, into commissionvalue! Please help.
Many Thanks, Alastair.

RE: Problem getting info from forms to tables!

Put the fomula in the Afterupdate event of one of the two, or even both of the other text boxes.
So when you key in a value and leave the box it will calculate the value. and stick it in the "commissionvalue"

Like so
-------------------
Private Sub Text1_AfterUpdate()
    If Val(Text1) = 0 Or Val(Text2) = 0 Then
        Exit Sub
    Else
        Me![commissionvalue] = Text1 * Text2
    End If
End Sub
-------------------------

then have the "commissionvalue" text box bound to the table like normal.



DougP, MCP
 dposton@universal1.com
 
 Ask me how Bar-codes can help you be more productive.

RE: Problem getting info from forms to tables!

(OP)
Hi Doug,
Thanks for your help mate. I got it working today to my great relief but as I'm sure you know once you get one thing sorted another rears its ugly head! I wish to create a button on a form which takes the info from that form and pastes it into a template document in Word. Is this possible? I'm not really sure where to start!
Al.

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