ok, i need a way to make an invoice. i have a products table with the number the name and the price of all my products and need to add only the products I want on the report, not all of them but more than 1 ......
Dell XPS
0
Junior Poster in Training
Recommended Answers
Jump to PostCreate a table called Inventory that contains all of your products with a field called "ProdId". Create a table called DesiredProds that contains the product id's you want to select.
Use the following SQL statement to get what you want.
SELECT * FROM Inventory INNER JOIN DesiredProds ON …
Jump to PostThinking about your original question, it really seem like what you want to do is to have two tables that represent your invoices. One table (InvoiceHeader) that contains one row for each Invoice (each row containing the Id of the Customer to whom you sold products) and a (LineItem) table …
All 6 Replies
hopalongcassidy
35
Junior Poster
Dell XPS
0
Junior Poster in Training
hopalongcassidy
35
Junior Poster
Dell XPS
0
Junior Poster in Training
Dell XPS
0
Junior Poster in Training
hopalongcassidy
35
Junior Poster
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.