How to make a customised query to link same fields in different tables

Proff52

New member
Local time
6:53 PM
Messages
2
Hi!I am trying to make a simple inventory program in Access 2007.I have tables for purchases,sales and a master table of the various items names.I have made a look up for item names in the purchases and sales tables from the master table of items so that there is no issue of spelling mistakes and to make it easier to enter item names.I am trying to make a stock sheet record using a query to show me the balances of the various items at a particular date(current date)The master table has fields for opening stock,reorder level and of course item names.In the query design view I have put current date as a formula,linked opening stock,reorder level and item names to the master table.Then I put in a formula to calculate the current balance of each item.The formula is thus:Take the opening stock from the master table add the quantity purchased from the purchases table and deduct the quantity sold from the sales table for each item.But when I run the query it shows me only the items and their current balance quantities for those items which appear in all three tables(ie.master table,purchases and sales table).Any item appearing in any one of the tables but not in the other two tables is not shown at all.So this means that non or slow moving items don`t appear when the query is run.Neither do items that have been purchased and not sold or vice versa.Please how do I solve this problem so that I show correct stock balances for all items at any time?
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo
OS
Windows 7 Professional 64 bit
Antivirus
Kaspersky
Browser
Mozilla

My Computer My Computer

At a glance

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x6...AMD Athlon II x4 6206GB GSkill DDR2 800AMD 4670 GPU + AMD 4200 IGP
Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
CPU
AMD Athlon II x4 620
Motherboard
Gigabyte GA-MA785G-UD3H
Memory
6GB GSkill DDR2 800
Graphics Card(s)
AMD 4670 GPU + AMD 4200 IGP
Sound Card
on board Realtek ALC889A
Monitor(s) Displays
RCA 40" LCD TV, Insignia 32" LCD TV, HP 15" LCD monitor
Screen Resolution
1680 x 1050
Hard Drives
OCZ Vertex 3 120GB,
Samsung F3 1TB (3),
Several others - WD, Seagate, Hitachi, ...
PSU
Corsair 500 W
Case
Rosewill mid tower
Cooling
CM 90mm rifle
Keyboard
Gyration wireless, Logitech wireless, Dell USB wired
Mouse
Gyration wireless, Logitech wireless, V7 USB wired
Internet Speed
Spectrum - 100Mbps D / 10Mbps U
Antivirus
Avast, MBAM3, EMET, WinPatrol
Browser
Pale Moon, Firefox, IE
Other Info
2 multi-boot PC's
Mainly HTPC/Office/Gen purpose (no gaming).
Trendnet USB KVM.
LG DVD burner/Blue Ray Player.
Tray system for removable SATA backup drives.

Not currently OCd, under-volted.
I use Hybrid sleep, rarely re-boot or shutdown.

Hauppauge HD-PVR, Avermedia PCIe TV Tuner, Hauppauge PCI TV Tuner.
Thank You Very Much

Dear David,

Thank you very much for your prompt and helpful reply.I will look up outer join and how to implement it in my database.
Have a wonderful Friday and brilliant weekend
Yours Sincerely
Mustafa
 

My Computer My Computer

At a glance

Windows 7 Professional 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
Lenovo
OS
Windows 7 Professional 64 bit
Antivirus
Kaspersky
Browser
Mozilla
Back
Top