Solved

Follow-up question for AzraSound

Posted on 2003-11-26
2
163 Views
Last Modified: 2010-05-03
Hello, I noticed you answered half of a question I was going to ask already and was hoping you could follow-up with the other half.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10835521.html?query=combo+history&searchType=topic

How could I prevent duplicates from being added to the Combo list?

Thanks inadvance

Cos
0
Comment
Question by:CosmoNut
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
CosmoNut earned 0 total points
ID: 9828934
Ok well, answered my own question I think,

Private Sub wbMain_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
    On Error Resume Next
        If addURL = True Then
                    For i = 0 To cmbURL.ListCount - 1
                        If cmbURL.List(i) = cmbURL.Text Then GoTo InHistory
                    Next i
            cmbURL.AddItem preURL, 0
        End If
InHistory:
addURL = False
End Sub

Your thoughts?
0
 
LVL 1

Author Comment

by:CosmoNut
ID: 9849749
Thanks for your help, will ask CS to delete

COS
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now