Okay -
I think I have this now. Please bear with me. I’m very new with Access. I do have this programmed in Paradox but I want to migrate over to Access 2003 which I have on my computer.
Unique Office Table Names – Usually 5 to 14 different office names in each unique table ie.,
CBAll.tbl [OfcName].
SCMLS.tbl contains 4,000 to 50,000 records, some matching the office names in CBAll.tbl [OfcName]
This is the secondary table that the unique tables will query against
I need to run these three queries, all at once preferably, and STORE these values to be placed in a small table on the last page of a report.
WSODV, WSORecs
TSODV, TSORecs
WSTDV, WSTRecs
MATCH ListName AND SellName
MATCH SellName NOT ListName
MATCH ListName NOT SellName
I will need to add them together as shown below for each CBAll.tbl [OfcName]
WSODV + TSODV + WSTDV
WSORecs + TSORecs + WSTRecs
My plan is to place control buttons (is this correct) on a form to run the queries, view and print the reports.
I will need some programming to ask the user to enter a unique table name. Something like a dropdown list I suppose. I don’t know. What about paths, etc?
Thanks Much. Rick
I think I have this now. Please bear with me. I’m very new with Access. I do have this programmed in Paradox but I want to migrate over to Access 2003 which I have on my computer.
Unique Office Table Names – Usually 5 to 14 different office names in each unique table ie.,
CBAll.tbl [OfcName].
SCMLS.tbl contains 4,000 to 50,000 records, some matching the office names in CBAll.tbl [OfcName]
This is the secondary table that the unique tables will query against
I need to run these three queries, all at once preferably, and STORE these values to be placed in a small table on the last page of a report.
WSODV, WSORecs
TSODV, TSORecs
WSTDV, WSTRecs
MATCH ListName AND SellName
Code:
SELECT DISTINCTROW CBAll.OfcName, Sum(SCMLS.SalePrice) AS WSODV, Count(*) AS WSORecs
FROM CBAll INNER JOIN SCMLS ON (CBAll.OfcName = SCMLS.ListName) AND (CBAll.OfcName = SCMLS.SellName);
MATCH SellName NOT ListName
Code:
\SELECT DISTINCTROW CBAll.OfcName,
Sum(SCMLS.SalePrice) AS TSODV,
Count(*) AS TSORecs
FROM CBAll INNER JOIN SCMLS ON CBAll.OfcName = SCMLS.SellName;
MATCH ListName NOT SellName
Code:
SELECT DISTINCTROW CBAll.OfcName,
Sum(SCMLS.SalePrice) AS WSTDV,
Count(*) AS WSTRecs
FROM CBAll INNER JOIN SCMLS ON CBAll.OfcName = SCMLS.ListName;
I will need to add them together as shown below for each CBAll.tbl [OfcName]
WSODV + TSODV + WSTDV
WSORecs + TSORecs + WSTRecs
My plan is to place control buttons (is this correct) on a form to run the queries, view and print the reports.
I will need some programming to ask the user to enter a unique table name. Something like a dropdown list I suppose. I don’t know. What about paths, etc?
Thanks Much. Rick