Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:44:51+00:00 2026-06-14T04:44:51+00:00

Each time I click on the Reset button on my form. I get the

  • 0

Each time I click on the Reset button on my form. I get the following error message:

Run-Time error '380':
Could not set the Value property. Invalid property value.

I’ve tried to debug the code and the error seems to be coming from these lines:

cbo_prefRoom1.Value = "No preference"
cbo_prefRoom2.Value = "No preference"
cbo_prefRoom3.Value = "No preference"

What could be causing this error? I’ve checked the form and the I’ve referenced the combobox in particular correctly.

Here is the code for the entire function:

Private Sub btn_Reset_Click()

    ' Reset form
    Dim ctl As msforms.Control
    For Each ctl In Me.Controls
        Select Case TypeName(ctl)
            Case "TextBox"
                ctl.Text = ""
            Case "CheckBox", "OptionButton", "ToggleButton"
                ctl.Value = False
            Case "ComboBox", "ListBox"
                ctl.ListIndex = -1
        End Select
    Next ctl

    Me.cbo_deptCode = "CO - Computer Science"

    ' Set default value for checkbox
    Me.chk_week1.Value = True
    Me.chk_week2.Value = True
    Me.chk_week3.Value = True
    Me.chk_week4.Value = True
    Me.chk_week5.Value = True
    Me.chk_week6.Value = True
    Me.chk_week7.Value = True
    Me.chk_week8.Value = True
    Me.chk_week9.Value = True
    Me.chk_week10.Value = True
    Me.chk_week11.Value = True

    ' Set default value for round
    Me.cbo_rounds = "Priority"

    ' Set default value for semester
    Me.cbo_semester = "1"

     ' Set default value for priority
    priority_y.Value = 1

    ' Set default value for lectureStyle
    lecturestyle_trad = 1

    ' Set default value from roomStructure
    rs_Tiered = 1

    ' Set default value for fac1,fac2,fac3
    cbo_fac1.Value = "No preference"
    cbo_fac2.Value = "No preference"
    cbo_fac3.Value = "No preference"

    ' Set default value for prefRoom1,prefRoom2,prefRoom3
    cbo_prefRoom1.Value = "No preference"
    cbo_prefRoom2.Value = "No preference"
    cbo_prefRoom3.Value = "No preference"

End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:44:52+00:00Added an answer on June 14, 2026 at 4:44 am

    If you have the combobox’s Style set to fmListStyleDropDown and “No Preference” isn’t an item in the combobox, you’ll get this error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Each time I click the Run as button, I get the following message. The
Each time I make changes to XML file and press run button, It generates
I wish to authenticate a user each time they click a button. If the
The following code hides a form for 10 seconds. Nothing too crazy. Each time
Each time I click on the map a new marker is placed on the
Each time I use Merge() I have the following: 'Cannot implicitly convert type 'void'
Each time I add in the correct code, it gives me the same error
I have one windows form file that each time I open it in Visual
When I click on a button in Silverlight I want to run a method
Each time my webpage is loaded it runs a routine in the page_load event

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.