Jump to content
Sign in to follow this  
Rapla

Access Database Calculation.

Recommended Posts

Assalamualaikum....

Nak tanya sikit....macamana nak tolak value dalam TextBox dgn Value kat dalam Database....kiranye....tak pakai Stored Procedure....tapi buat dalam coding VB.Net....boleh tolong tunjukkan tak?

Share this post


Link to post
Share on other sites

nih contoh jerk

Dim strSQL as string

strSQL = "Update certaintable set certainfield= sum(certainfield - " & CINT(textbox1.Text) & " where anotherfield='" & txtValue.text & "'"

'then ngko execute strSQL ngko tuh

slamat

Share this post


Link to post
Share on other sites

Aku guan Access sebagai Database.. Dalam Database aku ada satu colum nama dia Availability. Availability ni plk ada 4 row...camner aku nak select row mana yg aku nak tolak. and kat strSQL tue takyah specify table name ke?

Pastu kena buat OleDbDataAdapter utuk tue ke or guna yg existing?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...