Trouble updating data
I am completely frustrated… Trying to help a friend.
Here is what I have been trying to do.. I am a noob at visual studio.
I am setting up an inventory database using VB as the front end. I have setup an accounts table, product table. These I can view edit, delete, and ad records to fine.
I am trying to make an invoice. I have set up the following tables:
tblInvoice
InvoiceNum
Primary Key
AccountNum
Foreign Key For Accounts table
Date
Total
Total cost of items
tblInvDetails
Invoice Number
Foreign Key from tblinvoice
QtyOrdered
Number of Items ordered
Item description
From Product table
Item price
From Product Table
Total Cost
QtyOrdered * Item Price
So far I have a form that I can get Account information filled in from accounts, date Picker, item selector, invoice number.
I can pick an item select quantity click a view button to view the following in textbox:
Invoice Num QtyOrdered Product Item Price total item cost
All is well with that here is where the problem comes. I want to create a button to add items to tblInvDetails.
Once I figure this out I will work on totaling the Total items cost and, updating the Tblinvoice info and printing an invoice.
I can not get past this until I figure out the update.
Please help…
I am completely frustrated… Trying to help a friend.
Here is what I have been trying to do.. I am a noob at visual studio.
I am setting up an inventory database using VB as the front end. I have setup an accounts table, product table. These I can view edit, delete, and ad records to fine.
I am trying to make an invoice. I have set up the following tables:
tblInvoice
InvoiceNum
Primary Key
AccountNum
Foreign Key For Accounts table
Date
Total
Total cost of items
tblInvDetails
Invoice Number
Foreign Key from tblinvoice
QtyOrdered
Number of Items ordered
Item description
From Product table
Item price
From Product Table
Total Cost
QtyOrdered * Item Price
So far I have a form that I can get Account information filled in from accounts, date Picker, item selector, invoice number.
I can pick an item select quantity click a view button to view the following in textbox:
Invoice Num QtyOrdered Product Item Price total item cost
All is well with that here is where the problem comes. I want to create a button to add items to tblInvDetails.
Once I figure this out I will work on totaling the Total items cost and, updating the Tblinvoice info and printing an invoice.
I can not get past this until I figure out the update.
Please help…
Last edited by a moderator: