473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DataBase and ComboBox

Hello All.
I'm working on a Access Database project.
When my form runs the type field generates at the load.
The combobox populates with 2 fields.
If I select the 2nd feild it finds the correct information {Parameter Search}.
If I then try and select the 1st field the combo box shows the 2nd field twice.
Any suggestions on how to fix?

Expand|Select|Wrap|Line Numbers
  1.  Private Sub ButTypeSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButTypeSelect.Click
  2.         Try
  3.  
  4.             'Me.StockTableAdapter.FillBySearchSN(Me.StockDataSet.stock, Me.TextBoxSearch1.Text & "%", Me.ComboBoxTypeName.Text)
  5.             'Me.StockTableAdapter.FillBySearchStock(Me.StockDataSet.stock)
  6.         Catch ex As Exception
  7.             System.Windows.Forms.MessageBox.Show(ex.Message)
  8.         End Try
  9.  
  10.     End Sub
  11.  
  12.     Private Sub TypeNameComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TypeNameComboBox.SelectedIndexChanged
  13.         Me.TypeBindingSource.ResetBindings(True)
  14.     End Sub
Nov 4 '08 #1
1 1224
Dököll
2,364 Expert 2GB
Hey there, good buddy!

I am sending overr to the Access forum for a closer look.

Please return to us if you feel this is VB6 related.

In a bit!
Nov 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Noozer | last post by:
I'm developing a database using MS Access and have come across a problem. The majority of my database is pretty straightforward "many to one" relationships. I have one relationship that is...
9
by: Pam Ammond | last post by:
I need the code to update the database when Save is clicked and a text field has changed. This should be very easy since I used Microsoft's wizards for the OleDBAdapter and OleDBConnection, and...
0
by: Miki T via .NET 247 | last post by:
Hi, I'm trying to "connect" a combobox with a simple Access 2000 database. The objective is to show the elements contained in a column of the DataBase (just a simple Datatable). Should be that...
2
by: Jeremy Dillinger | last post by:
I have a program setup to pull data from a database. My database table has things such as (category, Item, price, etc.) In my program I want to have multiple list boxes that will have a pull down...
0
by: Webbyz | last post by:
Here is my problem. I have 2 fields fSeason and rSeason in my database. These hold the String values of either Spring or Fall. I have a comboBox in my form that i am trying to bind on load to...
1
by: freekedoutfish | last post by:
Hi. New member here Im sat at work, pounding my head off the desk because this tiny bit of simple code refuses to work. The sub is intended to pull data from the "companyname" column in the...
0
by: helloitsme | last post by:
Hello! Can someone please guide me to do the following - I am using a combobox on my form. I want the items of this combobox to come from a column in one of my database tables. Something like...
0
by: dips82 | last post by:
Programming lang: VB.NET Database: Access 2007 I have a form which gets data from a database(access 2007) subject to the value in a combobox. Now i hard coded this by coding if the value in the...
2
by: tmcdon05 | last post by:
With VB 2005 - I have a form that has comboboxes for selecting data from tables. User can select a customer name for instance and that is all that is in the combobox and on the form. I Want to take...
2
by: =?Utf-8?B?ZnJlZGR5?= | last post by:
I am new to the whole c# thing, I now how to get data from a db into a combo box. My question is: should I have one table for 5 combo box or have 5 tables for 5 combo box?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.