Solved

Follow-up question for AzraSound

Posted on 2003-11-26
2
170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

751 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