Thanks, Jim. I will have to work on this Monday and let you know how it goes, will try moving the code to the unload event then and prayerfully have good news for you. Today I'm pulled aside for a totally different project and am unable to work on anything else, so I'll just pull myself out of this whitewater river till then! 'Fools rush in where Angels fear to tread' . . . . oh well! :-) I made a decision when I first joined this group I would not be concerned about what people thought or if I offered advice, whether someone would think I was a jerk and how did I come up with that solution, or if I had a problem whether I was stupid for not knowing the answer or any combination thereof. Because sometimes we don't know what we don't know and we learn we know things we didn't know, and we learn we can be stretched to a level we didn't think if we just have a little support/guidance/encouragement. That is what this group has meant to me, is knowing I can jump in when the water looks black and the bottom not in sight, that somewhere out there it is like a tag team forms to solve a problem and nothing matters but the successful resolution of that problem. Our political affiliations, faith or lack thereof, nothing seems to matter but getting the code right so the function will perform as needed. Anyway, don't get me started! LOL Thanks for your help, later, Cathy "Jim Pettit" <j_e_pettit@hotmail To: <mso@xxxxxxxxxxxxx> .com> Sent by: cc: mso-bounce@freelist s.org Subject: [mso] Re: Access 2002: Checking For Nulls On Form 06/10/2004 06:00 PM Close Please respond to mso ..... Cathy-- It appears so, yes. As written, your Next_Click event doesn't 'know' that the form's BeforeUpdate event has been cancelled, so it goes on its merry old way unabated. You have a few options: A) Copy the code from the BeforeUpdate event and paste it into the form's Unload event handler. B) Declare a module-level variable (Dim fValid As Integer), using the BeforeUpdate event to set it to True if all the fields are filled in, or False if any of them are left blank. Then reference it in the form's Unload event handler, Cancel *that* event if fValid is False. One thing I've noticed about you over the months: you sem unafraid to jump into waters where some fear to tread. I like that... ;-) Anyway, let us/me know if that doesn't do it for you. --Jim -----Original Message----- From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Cathy.Evans@xxxxxxxxx Sent: Thursday, June 10, 2004 2:20 PM To: mso@xxxxxxxxxxxxx Subject: [mso] Re: Access 2002: Checking For Nulls On Form Close Thanks, Jim - now they're going to the proper message per blank field. Just need for it to go back to form instead of closing form so I can add missing data. My 'next' button says: Private Sub Next_Click() DoCmd.Close DoCmd.OpenForm "LocationFilterRS" End Sub Is this where the problem is that it closes after you click OK on the message box? ----------------------------------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. ------------------------------------------------------------------------------------------------------- ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************