i have 2 form namely appointment and drug.
in the appointment form there is datagrid containing 2 columns namely drugname and quantityused.
in the drug form i have 2 textbox namely txtoriginal quantity and txtquantityleft..
my problem is that i want the txtquantityleft takes the originalquantity substract the quantityused column in the appointment form.


How can i do this ?
Plzz Need help...

Recommended Answers

All 5 Replies

u means selected quantityUsed row in datagrid will appear in txtquantityleft on other form?

no selected quantity used will dbe deducted from original quantity on other form. then the quantityleft will show me the answer..

here is a sample of my project

drug form

Hi i have post my project can u have a look ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.