Results 1 to 4 of 4

Run Time Error 424

  1. #1
    Join Date
    Feb 2006
    Posts
    11

    Run Time Error 424

    I have a combo box listing the days of the week and I want to make sure that the user chooses a day. When I do a null check I get a run time error 424 'Object Required'

    here is my code:

    If Me.DayOfWeek.Value Is Null Then
    MsgBox ("You must enter a day.")
    Exit sub


    End If

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Dec 2005
    Location
    Wilmington, DE - USA
    Posts
    275
    Try:

    Code:
    If IsNull(Me.DayOfWeek.Value) Then 
        MsgBox ("You must enter a day.") 
        Exit sub 
    End If

  3. #3
    Join Date
    Feb 2006
    Posts
    11
    Works now, thank you for your help!

  4. #4
    Join Date
    Dec 2005
    Location
    Wilmington, DE - USA
    Posts
    275
    Glad to help, and good luck on your project!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 12-10-2018, 05:24 PM
  2. Run time error '6': Overflow
    By wasim_sono in forum Access
    Replies: 0
    Last Post: 06-22-2007, 06:44 AM
  3. Replies: 1
    Last Post: 12-09-2005, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Tech Forums: Microsoft Office Forums