0

I have inserted a value in a textbox in the form, which goes to a particular field in a particular table in the database. I want that same value to b displayed in another field in a different table in the same database.How?

2
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by nirvaan
0

Similarly i also want that if a combobox is selected, then as many datetime pickers must be enabled as the value selected in the combobox.Please help

0

actually i m not gettin how to do
let me tel u d problem.
I hav 2 tables.
StudentStatus and Student.
In student Status there is a combobox.(New, left, transfer)
Whatever value i select in Student status combobox must go to a text box in Student Table.Please help

0

Do you want to insert a record into student table where value of status field comes from the ComboBox? Isn't it?

0

yes
dats wat i want, the value of status field to be stored in student table.

0

This code might help you.

String val=comboBox1.Text;
  String sql="insert into student values ('a','b','" + val + "','1')";
  ....
0

the code you gave is for combobox.
But my 1st query is stil unsolved. I hav 2 tables.ASSET and STORE.
In asset I have the opening Balance of an Item Code. I want that as soon as I enter the Opening Balance for an Item Code, that OPening Balance is also stored in the Available Balance field in STORE table.
The common field is ItemCode in the 2 tables

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.