?
Solved

Save a number in Access Table

Posted on 2014-01-14
2
Medium Priority
?
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Suggested Courses

743 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