Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

Psyfo

@Psyfo
About
Posts
3
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Inserting new records in a child table
    P Psyfo

    Hi everyone I have the folowing code in the Business class in my program, but when i run it says that there's an error in the sql. Can you please help Public Function AddSale(ByVal dtDate As DateTime, ByVal bookcode As String, ByVal InvoiceNo As String, ByVal qty As Integer, ByVal subtot As Single, ByVal vat As Single, ByVal tot As Single) As String Dim sql As String Dim cmd As OleDb.OleDbCommand Dim result As String = "" Try sql = "INSERT INTO SALES (Dates, BookCode, InvoiceNumber, Quantity, SubTotal, VAT, Total) Values ( " + dtDate + " ,'" + bookcode + "','" + InvoiceNo + "', qty , subtot, vat, tot)" cmd = New OleDb.OleDbCommand(sql, con) cmd.Parameters.Add(New OleDb.OleDbParameter("@qty", qty)) cmd.Parameters.Add(New OleDb.OleDbParameter("@subtot", subtot)) cmd.Parameters.Add(New OleDb.OleDbParameter("@vat", vat)) cmd.Parameters.Add(New OleDb.OleDbParameter("@tot", tot)) cmd.Parameters.Add(New OleDb.OleDbParameter("@dtDate", dtDate)) If cmd.Connection.State = ConnectionState.Closed Then cmd.Connection.Open() End If cmd.CommandText = sql cmd.ExecuteNonQuery() result = "true" Catch ex As Exception result = ex.Message.ToString() End Try Return result End Function

    Visual Basic help database business sales

  • Displaying Records in Date arnge
    P Psyfo

    Hello Everyone I'm using VB. Net, can you tell me how to display records in a datagrid in a Date range. I have 2 DataAdapters, the other one has parameters "Date" and one DateTimePicker.

    Visual Basic tutorial

  • Calculating values in a datagrid
    P Psyfo

    Hi everyone Im using VB.Net 2003. I have a field in a datagrid "Total", how do i calculate the total:sigh: and Display it in a label

    Visual Basic csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups