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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:10:54+00:00 2026-05-26T23:10:54+00:00

When I add the value from database, the listbox should avoid the duplicate value.

  • 0

When I add the value from database, the listbox should avoid the duplicate value.

For Example

List1 box

 Value

100
200'
300

From the table, when i add the same value 001, the listbox should avoid the value. When I try to add 400, the listbox should allow to add.

  • 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-05-26T23:10:55+00:00Added an answer on May 26, 2026 at 11:10 pm

    When you create your listbox, you should use a dictionary to store all these values.

    Then, you can check if the value exists:

    If Not dict.Exists(key) Then 
        dict.Add key, value
        listitem.Add key
    End If 
    

    See this thread for more information: Does VBA have Dictionary Structure?

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

Sidebar

Related Questions

I want to add the value from my database to a label. The value
I am trying to add value to CoreData from .plist and get from coreData
This page from Adobe says to add a wmode parameter and set its value
Often I want to add a value to a table or update the value
I have a table (Dataview) with content from a database, where each row/object has
I want to bind the value to dropdownlist, the value is retrieved from database.
I need to populate the combo box Items from a database query (this part
I am trying to add month value from the drop down list into where
I have an array, I would like to add another value to it from
So I want to erase the guid @value from the database and retrieve the

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.