Hi all.
I'm trying to write my first Access database and I'm getting on well. It's
for my own small business use and the scenario is this. I have 4 or 5
suppliers who all email their product pricing and databases daily. As they
all use different formats etc, I have linked all their data and import using
append queries into a single table in a format of my choice. I then
manipulate the data and use it to update my pricing according.
I have 2 problems.
1. Once the pricing has been updated, I want to produce a report showing me
profit margins as confirmation that I've updated my prices correctly. I'm
drawing data from 2 tables, one being my own price table ("tbl_SAGE") and
the other being the full list as above ("tbl_full_list"). Because my price
is based on the cheapest supplier who happens to have stock, I use a select
query with the following fields:
product_code; manu_part_no; description; cost_price; sale_price; stock
(I use manu_part_no as the link between tables, showing all in tbl_SAGE and
those in tbl_full_list that match)
All the fields draw from tbl_SAGE except for cost_price & stock which come
from tbl_full_list. cost_price uses MIN in the total field to find the
cheapest price. What I need to do is filter out all the "0" stock levels,
however because I'm using totals it seems to ignore the MIN and shows all
matching manu_part_no that <> "0".
What I'm looking to achieve is tbl_SAGE pulls from tbl_full_list the minimum
cost_price for the product that matches manu_part_no and the stock quantity
(ignoring zero stock). I've tried DLOOKUP as an expression but without a
form to draw from I've been stuck.
This is harder to describe than I thought! Bearing in mind I don't think
i've made myself clear, I'll skip question 2 for now else this'll be a long
post!
Would anyone have any advice?
Kind regards,
Michael