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 March 11th, 2016, 11:03 AM
Registered User
 
Join Date: Mar 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default vba code that stops you from moving to a new record if certain text boxes are null

I need help writing a code that prevents moving to a new record if two different text boxes are null. I also need the code to put “Yes” in a text box once those two text boxes aren’t null.
 
Old March 25th, 2016, 11:06 AM
Authorized User
 
Join Date: Feb 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Angry move cursor

Have identical problem. 1 specific field CANNOT be Null or 0 (zero).
I hoped by doing a test on this field and adding a "setfocus" instruction that m cursor should return/stay in this field until a value was put in.
Instead the cursor moves tot the next field.
Thanks for any idea.
Marc





Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving to Next Record Help Required ritesh7 BOOK: Beginning ASP.NET 2.0 and Databases 0 December 27th, 2009 02:19 PM
VBA code to Search All Text Fields on a form dezmond2 BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 1 July 7th, 2007 11:58 AM
Help with VBA Disable/Enable text boxes yayomayn Access VBA 4 February 10th, 2007 08:43 PM
Access VBA - Controlling Text boxes in a form Scripts82 Access VBA 4 February 8th, 2006 08:35 PM
Code Execution Stops for No Known Reason tcarnahan Access VBA 6 October 28th, 2003 04:00 PM





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