Click here to Skip to main content
16,006,514 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: License not found error for dirDDBox and dirListBox Pin
Dave Kreskowiak11-May-10 9:54
mveDave Kreskowiak11-May-10 9:54 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 10:02
Andraw Tang11-May-10 10:02 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Dave Kreskowiak11-May-10 10:13
mveDave Kreskowiak11-May-10 10:13 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 10:21
Andraw Tang11-May-10 10:21 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Dave Kreskowiak11-May-10 10:42
mveDave Kreskowiak11-May-10 10:42 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 10:51
Andraw Tang11-May-10 10:51 
GeneralRe: License not found error for dirDDBox and dirListBox Pin
Andraw Tang11-May-10 11:10
Andraw Tang11-May-10 11:10 
QuestionVB bound data combo boxes. [SOLVED] Pin
ahulting11-May-10 3:01
ahulting11-May-10 3:01 
I have attached below the code I am using, it works... for the most part, there are 4 drop downs that drive the data, one is independent the "store" drop down, it works fantastically, however the other three dropdowns, are from the same table, it will allow the user to select UPC, SKU, or title, and populate the remaining data. The problem is I want to have the other 2 of the 3 also populate to the selected item. I get an error, if I try to change it after the first time I get the following error.

Column 'TITLE' is constrained to be unique. Value 'System.Data.DataRowView' is already present.


Any help would be greatly appreciated, it has to be something simple, this coded is all in VB 2010.


Thanks

Andrew

'populates store data from store table

    Private Sub StoreList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StoreList1.SelectedIndexChanged
        Dim ItemSelected As String
        ItemSelected = StoreList1.SelectedValue
        Dim stdv As DataView
        Dim i As Integer
        Dim val(0) As String
        Dim st As New bL_vmi_calculatorDataSet._Master___StoreDataTable
        stdv = New DataView(st)
        stdv.Sort = "Store"


        val(0) = ItemSelected

        i = stdv.Find(val(0))


        RegionTextBox.Text = DataTableReader.Equals(i, 1)
       


    End Sub


    'populates titles info from master title list table with TITLE

    Private Sub TitleBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TitleBox1.SelectedIndexChanged, TitleBox1.SelectedValueChanged
        Dim ItemSelected As String
        ItemSelected = TitleBox1.SelectedValue
        Dim tldv As DataView
        Dim j As Integer
        Dim val(1) As String
        Dim tl As New bL_vmi_calculatorDataSet.Master_title_listDataTable
        tldv = New DataView(tl)
        tldv.Sort = "TITLE"


        val(1) = ItemSelected

        j = tldv.Find(val(1))


        PUBLISHERTextBox.Text = DataTableReader.Equals(j, 0)
        'UPCbox1.Enabled = False
        'SKUBox1.Enabled = False

    End Sub
    'populates titles info from master title list table with UPC
    Private Sub UPCbox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UPCbox1.SelectedIndexChanged
        Dim ItemSelected As String
        ItemSelected = TitleBox1.SelectedValue
        Dim tldv As DataView
        Dim j As Integer
        Dim val(0) As String
        Dim tl As New bL_vmi_calculatorDataSet.Master_title_listDataTable
        tldv = New DataView(tl)
        tldv.Sort = "UPC (12 Digit)"


        val(0) = ItemSelected

        j = tldv.Find(val(0))


        PUBLISHERTextBox.Text = DataTableReader.Equals(j, 3)
        'TitleBox1.Enabled = False
        'SKUBox1.Enabled = False
    End Sub
    'populates titles info from master title list table with SKU
    Private Sub SKUBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SKUBox1.SelectedIndexChanged
        Dim ItemSelected As String
        ItemSelected = TitleBox1.SelectedValue
        Dim tldv As DataView
        Dim j As Integer
        Dim val(2) As String
        Dim tl As New bL_vmi_calculatorDataSet.Master_title_listDataTable
        tldv = New DataView(tl)
        tldv.Sort = "BL SKU"


        val(2) = ItemSelected

        j = tldv.Find(val(2))


        PUBLISHERTextBox.Text = DataTableReader.Equals(j, 1)
        'UPCbox1.Enabled = False
        'TitleBox1.Enabled = False
    End Sub


modified on Tuesday, May 11, 2010 12:14 PM

AnswerRe: VB bound data combo boxes. Pin
Johan Hakkesteegt11-May-10 3:11
Johan Hakkesteegt11-May-10 3:11 
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 3:14
ahulting11-May-10 3:14 
GeneralRe: VB bound data combo boxes. Pin
Johan Hakkesteegt11-May-10 3:20
Johan Hakkesteegt11-May-10 3:20 
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 6:14
ahulting11-May-10 6:14 
AnswerRe: VB bound data combo boxes. Pin
William Winner11-May-10 6:21
William Winner11-May-10 6:21 
GeneralRe: VB bound data combo boxes. Pin
ahulting11-May-10 6:28
ahulting11-May-10 6:28 
QuestionHow to run a .bat file in vb application? Pin
Orchid8510-May-10 19:17
Orchid8510-May-10 19:17 
AnswerRe: How to run a .bat file in vb application? Pin
Abhinav S10-May-10 19:46
Abhinav S10-May-10 19:46 
AnswerRe: How to run a .bat file in vb application? Pin
Johan Hakkesteegt11-May-10 3:34
Johan Hakkesteegt11-May-10 3:34 
AnswerRe: How to run a .bat file in vb application? Pin
Luc Pattyn11-May-10 4:19
sitebuilderLuc Pattyn11-May-10 4:19 
GeneralRe: How to run a .bat file in vb application? Pin
Orchid8511-May-10 20:33
Orchid8511-May-10 20:33 
GeneralRe: How to run a .bat file in vb application? Pin
Luc Pattyn12-May-10 1:43
sitebuilderLuc Pattyn12-May-10 1:43 
AnswerRe: How to run a .bat file in vb application? Pin
The Man from U.N.C.L.E.11-May-10 7:02
The Man from U.N.C.L.E.11-May-10 7:02 
QuestionCannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 10:53
Andraw Tang10-May-10 10:53 
AnswerRe: Cannot load control [ControlName]; license not found. Pin
William Winner10-May-10 11:02
William Winner10-May-10 11:02 
AnswerRe: Cannot load control [ControlName]; license not found. Pin
DaveAuld10-May-10 11:24
professionalDaveAuld10-May-10 11:24 
GeneralRe: Cannot load control [ControlName]; license not found. Pin
Andraw Tang10-May-10 11:30
Andraw Tang10-May-10 11:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.