ComboBox Item How to remove repeating items that came from an entity of a .dbf database

Hi all,
Can somebody help me? What  I want to happen is create a ComboBox Item from a .dbf database, the PMXMON contains each product's monthly data. Here's a screenshot of the output:
Is there a way to remove repeating items without changing the database contents?
I have this code:
Private Sub frmYearMonth_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim conn As New System.Data.Odbc.OdbcConnection("Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\;Exclusive=No")
conn.Open()
Dim strQuery As String = "SELECT * FROM CSHPMXP1"
Dim adapter As New System.Data.Odbc.OdbcDataAdapter(strQuery, conn)
Dim ds As New System.Data.DataSet()
adapter.Fill(ds, "PMXMON")
With ComboBox1
.DataSource = ds.Tables("PMXMON")
.DisplayMember = "PMXMON"
.ValueMember = "PMXMON"
.SelectedIndex = 0
.Text = "--YYYYmm--"
End With
End Sub
Thanks :)
Geee

You can use Distinct keyword to return unique records from your DB.
On the side  I'm not seeing any informative value in your Comobox, if you trying to show product monthly data.
SELECT Distinct PMXMON
FROM CSHPMXP1
Fouad Roumieh

Similar Messages

  • How to remove these items from Infopath ribbon in web enable form?

    Hi All,
    I am using custom list form customized in infopath 2013, I want to remove these items from ribbon :
    I tried with Infopath  "form Options" like:
    But still showing "Picture-1" options. How to remove those items from ribbob?

    Hi,
    I understand that in the list view web part, you wanted to remove the ribbon of InfoPath form.
    There are to mothed to achieve it:
    Open the list, click new item, edit page, edit web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the new item page will remove the riibon.  Then when you open the page which has the list view web part, the ribbon of InfoPath form will also
    be removed.
    Open the page which has the list view web part, edit page, edit the list view web part, unclick the ‘Show InfoPath Ribbon or toolbar’ box, the ribbon of InfoPath form in the web part will be removed. Then when you open the list, the ribbon of InfoPath form
    will also be removed.
    The two method edit the same page newifs.aspx, so the list and the webpart will be modified in the same time.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to remove an item from side bar?

    Can anyone teach me how to remove following item  from side bar:    Thank you!

    Niel thank you very much for you help.

  • How to remove particular item in array

    hai friends,
    how to remove particular item in array

    use splice() method
    http://livedocs.adobe.com/flex/3/langref/Array.html#splice%28%29

  • How to remove repeated mails in exchange online outlook web app

    Hi,
    Any help me , how to remove repeated mails in exchange online outlook web app . As we are in process of migrating mailboxes to office 365 . We have migrated 5 mailboxes . But when i checked outlook web app after migration completed , i could see repeated
    mails . When i compared with on premise outlook and office 365 outlook web app  , there was lot of differences in read and unread mails . 
    Customer is expecting , same read and unread count should be replicated to office 365 owa.
    Please suggest me to prevent this problem . As this is very urgent to give solution to customer . 
    Big thanks in advance.
    Vinoth .

    If you've setup Outlook 2013 so it's connected to Office 365, and you've import the .pst file into Outlook, it will be showing as another "mailbox" within Outlook, but default called "Personal Folders" (unless you renamed it when it was created).
    You should find that you can simply copy the mail items / folders from Personal Folders into their new home in the Office 365 mailbox. Once that's done Outlook will synchronise the items with o365 which may obviously take a while to complete, but once it's
    finished those messages will be available online.

  • I have 0,3€ credits. How can remove them so that I can change to the app store of another country?

    I have 0,3€ credits. How can remove them so that I can change to the app store of another country? I need to change to the Chinese app store as the apps I am looking for can be only found there. Thanks for all answer in advance!

    Click here and ask the iTunes Store staff to zero your account balance. Note that if you're not in China, you won't be able to use the Chinese App Store.
    (125951)

  • I would like to remove the icons that came preloaded when I did the update for ios7. The Disney, yahoo, Espn etc. these icons aren't in my bookmarks so how do I remove them from my safari home screen?

    I would like to remove the icons that came preloaded when I did the update for ios7. The Disney, yahoo, Espn etc. these icons aren't in my bookmarks so how do I remove them from my safari home screen? Can anyone help?

    I am trying to figure this out as well. It is really frustrating. I wish I could go back to iOS 6 this *****

  • Plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m,

    plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m

    Read this: http://support.apple.com/kb/PH13695
    If it is locked with your ID, then re-set the password at https://iforgot.apple.com

  • How to remove an app that does not have an X

    how to remove an app that does not have an X
    i.e.  stocks

    @greg1424
    Who needs newsstand ? It depends if you enjoy reading the newspaper or magazines in your spare time.  Back in the day, you find that small child delivering your morning newspaper.  You open the door, you found out that the next door neighbor stole your daily newspaper, now you have to buy a new one at the neighborhood deli.  Now Newsstand, fix that by delivering the news you love to your iOS device.  Drink some coffee, while flipping pages on your phone or iPad.  Guess what?  You saving the earth, no one stealing your paper and is available anytime you want.   Plus their subscriptions are cheap, so view the link to read more about it.
    Use Newsstand on your iOS device - Apple Support
    Is pages and numbers free?  Is free, you activated or purchased on or after September 1, 2013. Read the link below for more details
    Free Apple apps for your iPhone, iPad, and iPod touch with iOS 8 - Apple Support
    Cheers,
    Wilkie

  • How to remove a website that I have put in exception list for unauthentic security certifificate?

    How to remove a website that I have put in exception list for unauthentic security certifificate?
    == URL of affected sites ==
    http://robotax.in

    You can check if you can find that site in the certificate manager:
    Tools > Options > Advanced > Encryption: Certificates > View Certificates

  • TS3274 How to remove an old iCloud account from my IPad.  The account (email) was on my dad's name and he resently change it and now i can't  reset or delete his iCloud account without his password.  Please advise on the procedure.  Thanks.

    How to remove an old iCloud account from my IPad.  The account (email) was on my dad's name and he resently change it and now i can't  reset or delete his iCloud account without his password.  Please advise on the procedure.  Thanks.

    If you are trying to activate an iPad or iPhone and it is asking for a previous owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. You must use the previous owner's password to get permission to use the device. If you cannot get the password your father put on the iPad you will never be able to activate the device and no one can help you do it.

  • How to remove a old iCloud account from the iphone

    I purchase a iPhone from somebody and the phone has been reset but the iCloud shows that he phone has reach it max numbers of free account to sign. So how I remove a old iCloud account from this phone. I do not have phone support so I am unable to get help from apple can anybody help me

    is there anyone there who can help or any type of subjection to this matter or am i the only one who has come accross this issue.

  • How do I delete photo albums from my phone that came from my computer? I have a 5S

    How do I erase photo albums on my phone that came from my computer

    Connect the iPhone to the computer with iTunes running, select the iPhone in the device pane, select the Photo tab in iTunes, deselect the checkmark for the photos that you want to remove and perform a sync.
    Photos that have been synced from the computer can only be removed by the sync process.

  • How to remove a broken charger nib from my iPad?

    How to remove a broken charger nib from an iPad?
    <Email Edited by Host>

    Was it the old 30-pin connector, or the new Lightning plug? There have been sporadic reports of the new connector snapping just ahead of the two side "dimples" that are used to hold it in place, but this would be the first time I hear of similar failure on the older and bigger connectors.
    If at all possible, I would suggest a visit to an Apple Store for free assessment. Else proceed with caution either with tweezers and/or a pin to nudge the fragments out. Maybe a review of the corresponding teardown of your model at IFixIt.com may help you visualize how to attack the problem.

  • How to remove "Other..." from my sign-in screen?

    How to remove "Other..." from my sign-in screen?
    I was trying to change an Administrator Account by starting from my Leopard Install DVD and from the Utilities menu choosing Reset Password, etc. A longish story involving my inability to shut-down the computer while others are signed in but not actually using the computer. In Tiger I was able, since moving to Leopard I need to go into each of their accounts and manually log each of them out. A headache.
    For right right now I need to get rid of the Other... account name, etc from my sign-in screen. How do I do this in plain English please? I find all this Admin jargon does my head in.
    Cheers, SZ

    V.K. wrote:
    You need to disable the root user. From what I understand you enabled it from the install DVD's password reset.
    Use [these instructions|http://docs.info.apple.com/article.html?artnum=106290] to disable it.
    Those instructions led me down this path, I have not the head to deal with them again today. My eyes glaze-over listening to myself read them aloud. SZ
    Message was edited by: ShakuZen

Maybe you are looking for

  • How can I check if an user has access to an url within my web app?

    Hi, I have a web application where I allow the users to set their startup page by presenting them a list of startup pages. However, some startup pages can accessed only by certain users, so I want to present the user only those pages the user has acc

  • Can I redeem my gift card with another person?

    I have a gift card I want to share with my husband.  Can he also use it?

  • FC vs. iSCSI performance with Mac OS X Server

    Hi All, I've relied on direct-attached Fiber Channel storage for our network server volumes since the early days of the Xserve RAID units. We use our network volumes for graphic design needs (with large files) over a Gigabit network, with some Window

  • DB2 8.1(ver) Full Backup

    HI Experts, I am planning to take the full backup in DB2. I am using SAP on Windows server 2003 platform with DB2 8.1 Version. Please share if any document is there, it will be great help for me. Thanks in Advance. Regards, Raj

  • IPhone 5 red 1 in settings app

    I have recently upgraded form an iPhone 4 to the iPhone 5. Everything has been downloaded from my 4 without any problems. However, I have a red 1 in the settings application that I cannot get rid of. I have checked everything in the settings and noth