Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

how do i update a empty field in the database

$
0
0
i know i asked this too many times already here but i still dont get it.
how can you update without a subitem?
i have 3 fields in inventorty system.
InvQuantity,InvSold,InvRemain

i have 10 items in the InvQuantity
if i sale 7 then the remain is 3 right?

how do i do that my inventory fields will be like this after i sale

InvQuantity = 10 InvSold = 7 InvRemain = 3


i have this code that suppose to update the InvSold But Dosnt do nothing.
Code:

strSQL = "UPDATE Inventory SET InvSold = InvSold - " & Txt(6).text & " WHERE InvParts = '" & RplS(Txt(5).text) & "'"
i just dont know what to do.i swear im lost
this is my DB

HairDesign.zip
Attached Files

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>