can you please help me! i need a code for making a POS. have been looking but could not find anything. I am making a POS for a market stand. it is our project. could you please help me! I need it within next week......help me!

Dani AI

Generated

Practical starter for a simple VB6 point-of-sale (market stand) that covers the minimum needed for a working prototype: a small local database, a keyboard-friendly sale form, a secure-ish login, transaction commit, and a printable receipt. This complements the original request from and the follow-ups by and ; was right to ask for code snippets and the usual next step is to show small, focused examples when stuck.

A minimal schema (sufficient for a demo/thesis):

  • Products: ProductID (AutoInc), SKU, Name, Price, StockQty
  • Users: UserID, Username, PasswordHash, Salt, Role
  • Transactions: TransactionID, TxnDate, CashierID, Total
  • TransactionItems: ItemID, TransactionID, ProductID, Qty, UnitPrice, LineTotal

Login example (uses ADODB parameterized command; HashPasswordWithSalt should be implemented via a library or OS crypto; never store plaintext):

Function ValidateLogin(conn As ADODB.Connection, uname As String, pwd As String) As Boolean
    Dim cmd As ADODB.Command, rs As ADODB.Recordset
    Set cmd = New ADODB.Command
    Set cmd.ActiveConnection = conn
    cmd.CommandText = "SELECT PasswordHash, Salt FROM Users WHERE Username = ?"
    cmd.Parameters.Append cmd.CreateParameter("p1", adVarChar, adParamInput, 50, uname)
    Set rs = cmd.Execute
    If Not rs.EOF Then
        ValidateLogin = (rs("PasswordHash") = HashPasswordWithSalt(pwd, rs("Salt")))
    Else
        ValidateLogin = False
    End If
    rs.Close
End Function

Transaction flow (high level): begin DB transaction (conn.BeginTrans), insert master record, insert line items, update stock, then conn.CommitTrans (or RollbackTrans on error). For a quick deadline prioritize: product lookup, add/remove lines, total calculation, cash payment, and a simple receipt print (use VB6 Printer or generate plain text). Security notes: use parameterized queries, do not store plaintext passwords, and keep regular backups. As pointed out, work in a new thread when posting code samples or specific errors so responses stay focused.

Recommended Answers

All 4 Replies

lets see the code that you are working on.

how do i code my user log in??

my thesis will be making a simple point of sales , can you help me to the code of it ,, it include user log-in , then the transaction and receit,,
please help me
thank you sir

first off, don't raise old threads.

can you help me to the code of it ,, it include user log-in , then the transaction and receit,,
please help me

here , i think nobody will do this for you.
users are independent to help others and we are not bound to complete others tasks and we try to solve the problem on our own wish.

so if you want to have useful code , then first try yourself and still facing some problems then post your problem in new thread and there we will try to solve the issue.

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.