Solved

Save a number in Access Table

Posted on 2014-01-14
2
379 Views
Last Modified: 2014-01-14
Is it possible to enter a numeric value in a form and have access save the value multiplied by 2 on it's table. Not having the actual value that was entered stored on any table... the saved value would be the number on the form times two.

Thanks!

Chris
0
Comment
Question by:cansevin
2 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 500 total points
ID: 39781250
Yes, create a field that is not bound to any field in the table. have a second invisible field that is bound to your actual field that you want value saved in. The on the form fields after update event use something like

If IsNumeric(Me.fieldname) then
    me.actualfield = me.fieldname*2
Else
   MsgBox "The value you entered is not numeric", vbOK, "Invalid Entry"
End IF


Kelvin
0
 

Author Comment

by:cansevin
ID: 39781255
Thanks Kelvin!
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question