473,387 Members | 1,834 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,387 software developers and data experts.

Update a text box in regard to the item seleted in the combo box

6
i am trying to implement an application in order to keep rercords of the stationary of a company. i have a combo box named ComboP_Name In FormProducts form,which is getting the values from the ProductName field of products table and ActualQOH is the table which is getting the corresponding quantity on hand value from the same table, the problem is it does not work that way. when i select the product i want from the combo box the textbox does not get the corresponding value. if i still try to update it will generate a msg saying

"the cahnges you requested to the table were not successful because they would create duplicate values in the index, primary key or relationship. Chnage the data in the field or fields thatcontain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again"

i am not trying to update the primary key of the products table which is the ProductName, i am just trying to update the Qty on Hand.
but when i use the navigation keys o when i enter a number their it will redirect to the product i want and update the qty on hand.

i need help and need to hand this over by tomorrom. i have lyk 21 hours...
thanx in advance
Dec 7 '09 #1
6 1878
aBheE
6
i got tym till 2mro....plz guys...can sm1 plz help me put hea..thanx
Dec 8 '09 #2
hjozinovic
167 100+
aBheE,
The problem here must be in the way you join your tables.
If you want you could attach a sample DB here or send it to me directly and I could help you with that right now.
Dec 8 '09 #3
aBheE
6
No joined tables are used in this particular form. I dont know y. i have mailed u the DB. please can u check that and let me know. thanx for ur concideration..
Dec 9 '09 #4
aBheE
6
plz. can SOME ONE check this attatchment and advice me on what i shud do..thnx
the problem is occuring on form "Products"
Thanx

New Folder.zip
Dec 9 '09 #5
I might have miss interpreted your question... but a possible solution might be to edit the control source of the text box to display the stored value in the combo box.

In the property sheet , add in "=[Forms]![ProductName]![ComboP_Name]" without the quotes
Dec 9 '09 #6
aBheE
6
thanx.... but it doesnt seem to be wrkin.... my issue is i can select an item from the combo by going thru the data 1 by 1. and also can use that scroll thing of the mouse to navigate trhu the items. but wen i click on the combo(when it drops down) i can select an i tem...
guess this is clear...f not pls lemme kno..thanx
Dec 9 '09 #7

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

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
10
by: Hank1234 | last post by:
Can I use one Data Adapter and one Command Builder to update amny tables? Currently in my data adapter I query two tables and fill them into two tables in a data set. When I make a change to a...
1
by: Maria Joao | last post by:
I have two synchronized combo boxes and after the selection of the desired record, I need the user to open the related report, by pressing a button. My problem is that a combo box doesn't update...
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...
9
by: Geraldine Hobley | last post by:
Hello I'm getting the above mentioned error in my applicatio I have a datagrid bound to a datasource like s MyDatagrid.DataSource = Mydataset.Tables(Order) - this all works fine However I...
5
by: explode | last post by:
I made a procedure Public Sub Novo(ByVal nova1 As String, ByVal nova2 As String) that creates a new oledbDataAdapter with insert update select and delete commads. I also added that commands can...
2
by: jw01 | last post by:
I have a form in which there is one combo box and three text boxes: Combo Box: -> Item A -> Item B -> Item C TextBox1: TextBox2: ...
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.