Hello,
my company is a B2B one and we're storing each unit sold by its serial number for purposes of monitoring repairs, calibrations etc.
The current architecture is as follows:
I've got orders divided to:
- our orders from the suppliers (S)
- orders placed by our customers (C)
In order for a unit to show (with its S/N), I have created this query:
The S and C tables are actually 2 copies of the OrderDetails table, one filtered to Supplier Orders (S) and Customer Orders (C). The query shows various information like the product model, the customer, buying price, selling price, profit, etc.
The problem is that we have been using the database for only a year or so. But the company has been on the market for 30 years. We receive many RMAs (repair inquiries) with products that we sold ages ago. Therefore they are not in the database. Or we might have not sold some unit at all.
I created a dummy customer order for a fictional customer (ourselves) where I put all such items.
In the main menu of the database, I have a text box where I type a serial number, press a button and the database shows all the information about that particular unit.
- when it was bought, sold, for how much, to whom, all the repair and calibrations...
The form's data source is the query above.
The problem is that it only shows units that we ordered from our suppliers (see the joins). I need it to show units that are ONLY in the customer orders but at the same time I want to keep showing the units only in the supplier orders. Is this possible to achieve?
Thanks for any tip.
Best regards,
Tomas