[mso] Re: Access 2002: Checking For Nulls On Form Close

  • From: Cathy.Evans@xxxxxxxxx
  • To: mso@xxxxxxxxxxxxx
  • Date: Thu, 10 Jun 2004 17:19:35 -0400

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?


                                                                                
                                
                      "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 05:06 PM         Close                         
                                
                      Please respond to                                         
                                
                      mso                                                       
                          ..... 
                                                                                
                                
                                                                                
                                




Cathy--

You've written:

             If Nz(Me!Project.SetFocus, "") = "" Then

You need to remove dot and the the SetFocus method from those calls:

             If Nz(Me!Project, "") = "" Then

You've got it in all three 'If - Then' clauses

--Jim







-----------------------------------------------------------------------------------------------------
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
*************************************************************

Other related posts: