Rabu, 03 Mei 2017

Re: [MS_AccessPros] Help with blank field

 

Ken-

The simplest way is to set the Default Value of all three fields to 0.  In Before Update of the form, check all three fields and ensure only one has a non-zero value.  If the user has entered multiple values, display an error message and cancel the update so the user can fix the problem.

John Viescas, author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Access Applications

On May 4, 2017, at 00:59, kenaf42@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Access 2010. On a form, there are three currency fields, A, B, and C.

When new record is added only one these fields would have value greater than zero other two fields would stay blank.

What I need is that the value of other two fields instead of blank becomes equal to zero.


Thank you. Ken 

 

__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar