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 8519015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:08:00+00:00 2026-06-11T06:08:00+00:00

I have an Access 2000 form that contains a combobox. The combobox is bound

  • 0

I have an Access 2000 form that contains a combobox. The combobox is bound to a field in a table. When the value in the table is null, I want to set a default value on combobox without making the record dirty. Setting defaultValue does not work unless it is a new record. When I try to set the value, I get an error “You cannot assign a value to this object”.

Any thoughts?

Me.cboName.Value = Me!cboName.Value ‘ This causes the error mentioned above

Me.cboName.DefaultValue = Me!cboName.Value ‘This does nothing on an existing record.

  • 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-11T06:08:01+00:00Added an answer on June 11, 2026 at 6:08 am

    The DefaultValue is entered when a NEW RECORD is created. To have the value display for an existing record… the easiest way I can think to accomplish this is to usean unbound control. For example, if the field you are using is theName in the Current event you’d use code like this:

    Private Sub Form_Current()
         me.cboName.value = Nz(me.theName.value,defaultValue)
    End Sub
    

    Where defaultValue is your previously determined default value. This will effectively require you to have two controls for the name… One with the bound value and one with the displayed value. If you do this, you’ll have to also add code to update theName, when you change cboName.

    As Remou suggested, you should ask yourself if this is really what you want to do, as it is definitely at least a little messy.

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

Sidebar

Related Questions

I have this old Access database (2000 format) which i want to convert to
In my SQL query in Access 2000, I have a field containing numbers like:
I have a database created in access 2000. A form with a subform (datasheet
First off, I'm using Access 2000 and DAO. I have code that executes a
I have a table in SQL Server 2000 that I am trying to query
We have an old Access 2000 database that we need to pull data from
I have an Access 2000 database with a custom form. People are entering info
I have a notifyIcon on my Main form, and want to set the baloontip
We have an ADP project created several years ago using Access 2000. This project
I have access to a virtual machine via vmware client and want to do

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.