Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 30th, 2016, 07:08 AM
Registered User
Join Date: Sep 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Validating transactions on Subform


I have a sub form linked to the main form with financial data below, now the business rules are as follows:

(1) If the DR (Debits) and CR (Credits) are not equal then the data shall NOT be saved on the table

(2) If the DR and CR are equal then the data shall be held for further processing before finally released by a senior official after satisfaction ,and then finally saved on the table permanently

Now how can write the code to satisfy the above two rules. See below:


Details Account Code DR CR

Milk 560100 £5.00
Tea 560101 £2.00
Other 560102 £1.00
Sugar 560103 £2.00

Total £5.00 £5.00

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening A Record in a subform, based on selection in another subform ryoblade Access 1 August 21st, 2016 01:55 PM
Transactions???? CRONER BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 4th, 2009 04:43 PM
transactions.... Johnslg BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 August 20th, 2007 08:51 AM
Postgresql Transactions satyr Pro JSP 0 March 23rd, 2006 08:31 AM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.