473,783 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doubt in datacombo in vb 6.0

31 New Member
Dear All,

In my form i,v many tables for examples

1.(Table)suppli er = SupId varchar(10) primary key,SupName(20)

2.(Table)Produc t = ItemNo varchar(10)Prim ary key,Descrp varchar(20),Pri ce float,Qty int

3.(Table)Pinvoi ce=InvoiceNo int primary key, Pdate datetime,SupId varchar(10),Sup Name varchar(10),Ite mNo varchar(10),Des crp varchar(20),Pri ce int,Qty int

i created 2 form lke Product and Invoice , in 2nd form(Invoice form) i designed

like this

Invoice no (TextBox) Date(TextBox)

supId (DataCombo) SupName(TextBox )

The supId which is in Supplier table, so i bind the SupId from supplier then if i click the combobox SupId corresponding Supname should come automatically in the SupName TextBox

ItemNo(DataComb o) Descrp(Textbox) Price(Textbox) Qty(TextBox) Gross(Price*Qty )

The ItemNo is which is in Product table, first i bind in
dataCombo if i click the combobox ItemNo then the corresponding Descrp,Qty,Pric e would come automatically

So what can i do in this above issue
So i need a help , can anyone tell me how can i do this
Apr 13 '08 #1
1 1841
debasisdas
8,127 Recognized Expert Expert
You need to run SQL query by passing values dynamically.\
Fetch the records
Display in the desired controls.
Apr 14 '08 #2

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

Similar topics

2
4973
by: Hmmm... | last post by:
Is there a way to control which controls appear to be "on top". For example a MaskEdBox shows up "on top" of a ComboBox when the 2 controls overlap, but a MaskedBox shows up "underneath" a DataCombo when 2 controls overlap. How can I force a MaskEdBox to show up "on top" of a DataCombo when whey overlap? Thanks.
0
238
by: oaksong | last post by:
I've got a data combo with about 12 rows, of which only the first two are selectable! I put a label on the page below the datacombo and selecteditem.text will populate the list when I change the selection combo for either of the first two items, but not for any of the others. I'm using database objects to populate the Datacombo. The code is:
6
3867
by: R | last post by:
Hi, I'm really stuck here. I have a data combo called cmbHvem which I link to a recordset RS23 like this If RS23.State = adStateOpen Then cmbHvem.RowSource = Nothing RS23.Close() End If
1
1896
by: Bookreader | last post by:
I'm using a datacombo box in an application. It works fine when someone has made a selction and I use: adodcClient.Recordset.Bookmark = dcClient.SelectedItem MsgBox "Client Selected: " & dcClient.SelectedItem client = adodcClient.Recordset.Fields(0).Value clientID = adodcClient.Recordset.Fields(1).Value When there is no client, the code generates an error as should.
0
1828
by: Akinyemi | last post by:
I am developing a database for a Payroll program. I store the names of employees in a DataCombo control. I use ADO to connect the fields to my Access Database. Instead of using a Find or Search Button to look for an employee name in the database , I want to use a DataCombo control so that when the user clicks on the name of an employee or selects an employee name in the DataCombo, all the fields in respect of the employee selected shoud be...
122
4313
by: ivan | last post by:
hi all, if I have: if(A && B || C) which operation gets executed first? If I remeber well should be &&, am I correct? thanks
0
1046
by: hussainiyad | last post by:
Dear All, I,m doing a invoice project and in it i want to create both salesInvoice & purchase order my Purchaseinvoice table contains following fields 1.InvoiceNo int primary key 2.Pdate datetime 3.Supplier Id varchar(10)(This sup id should come from supplier table) 4.SupName(20)
1
4193
by: sunilkds | last post by:
What is difference between datacombo box and simple combo box. what is combox.itemdata @ datacombo box I want complete information with example of datacombo box
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.