Click here to Skip to main content
15,891,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello

i am developing a s/w for a blood bank
and i want when i make delivery of blood the blood got decrement in stock as well
i am using vb6 with oracle 8i.
Posted
Comments
Sergey Alexandrovich Kryukov 27-Oct-11 2:56am    
Off-topic! This is a forum for software developers or students.
--SA
rajinder raviya 27-Oct-11 2:57am    
for studemts

1 solution

thnx "SAKryukov"
i got my solution.
it was this=========

VB
Set cn = New ADODB.Connection
Set rec = New ADODB.Recordset
cn.Open "provider=MSDAORA.1; user id = scott; password=tiger;"
'cn.Open "Provider=MSDAORA.1;Password=mca2862;User ID=mca2862;Data Source=aim;Persist Security Info=True;"
Set rec = New ADODB.Recordset
rec.ActiveConnection = cn
rec.LockType = adLockOptimistic
rec.CursorLocation = adUseClient
rec.Source = "blood_stock"
rec.Open "select * from blood_stock"
rec.Fields(1) = rec.Fields(1) + Combo1.Text
rec.Update



""fields(1) which i want to update and combo1 from where i fetch the value.""
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900