scottlacourse
IS-IT--Management
I am linking 2 ODBC tables (Providex MAS 90)with an MSAccess database.
The ODBC tables had inventory sales info so Part number,units sold, year. (Multiple records per part number)
The Access database has the part number, qty on hand at month end, and date. (Also mulitple records per part number)
I have created a report that shows sales info summarized by part for a particular month, and now I need to pull in the qty on hand from the Access database for each part.
I've got the tables linked on part number as that is the only common field.
I've created a formula for the qty on hand to seperate the date in the access database into year and month, then compare to my parameters:
if right(totext(year({Month End QOH.MonthEndingDate}),"0000",4) = "2003" and
right(totext(month({Month End QOH.MonthEndingDate}),"00",2) = {?Last Year Cutoff Month} then
{Month End QOH.QoH} else 0
I was "thinking" (that is probably my problem ) that I could use this formula in my detail and it would only return Month End QOH.QoH when year and month match, BUT
what I am seeing is that Crystal is only looking at the FIRST part number record in the Access database, and not subsequent records for the same part number. As a result I am getting all zeros returned, rather than my proper qoh value.
Any ideas?
The ODBC tables had inventory sales info so Part number,units sold, year. (Multiple records per part number)
The Access database has the part number, qty on hand at month end, and date. (Also mulitple records per part number)
I have created a report that shows sales info summarized by part for a particular month, and now I need to pull in the qty on hand from the Access database for each part.
I've got the tables linked on part number as that is the only common field.
I've created a formula for the qty on hand to seperate the date in the access database into year and month, then compare to my parameters:
if right(totext(year({Month End QOH.MonthEndingDate}),"0000",4) = "2003" and
right(totext(month({Month End QOH.MonthEndingDate}),"00",2) = {?Last Year Cutoff Month} then
{Month End QOH.QoH} else 0
I was "thinking" (that is probably my problem ) that I could use this formula in my detail and it would only return Month End QOH.QoH when year and month match, BUT
what I am seeing is that Crystal is only looking at the FIRST part number record in the Access database, and not subsequent records for the same part number. As a result I am getting all zeros returned, rather than my proper qoh value.
Any ideas?