H
hotrod1952 via AccessMonster.com
I am a newbie to tab controls on forms... My data for the tabs comes from two
tables. I have a query(stored) built to get the records I want.
SELECT WO.WOID, Asset.AssetID, WO.WOComment, WO.DateCreated
FROM WO INNER JOIN Asset ON WO.AssetNo = Asset.AssetNo
GROUP BY WO.WOID, Asset.AssetID, WO.WOComment, WO.DateCreated, WO.ReasonCode
HAVING (((WO.DateCreated)>=[Forms]![MAINTDateInput]![Combo0] And (WO.
DateCreated)<DateAdd("d",1,[Forms]![MAINTDateInput]![Combo4])) AND ((WO.
ReasonCode)="eqf"))
ORDER BY Asset.AssetID, WO.DateCreated;
Using a specific date range from my date input form I am returning 33 records.
Of these 33 I am returning a field(AssetID) which there are 7 that have two
records.
What I want to do is evaluate(count) the records of the [AssetID] in this
sample data (26). and have that many 26 tab pages on my form. Then I would
like to have on each page a list of each WOID,WOComment,Date Created. for the
Asset.
To sum up open date input form enter date range. call query populate # tab
controls for each asset. displaying on each page the record or records that
apply to each asset.
A better way to accomplish this?
tables. I have a query(stored) built to get the records I want.
SELECT WO.WOID, Asset.AssetID, WO.WOComment, WO.DateCreated
FROM WO INNER JOIN Asset ON WO.AssetNo = Asset.AssetNo
GROUP BY WO.WOID, Asset.AssetID, WO.WOComment, WO.DateCreated, WO.ReasonCode
HAVING (((WO.DateCreated)>=[Forms]![MAINTDateInput]![Combo0] And (WO.
DateCreated)<DateAdd("d",1,[Forms]![MAINTDateInput]![Combo4])) AND ((WO.
ReasonCode)="eqf"))
ORDER BY Asset.AssetID, WO.DateCreated;
Using a specific date range from my date input form I am returning 33 records.
Of these 33 I am returning a field(AssetID) which there are 7 that have two
records.
What I want to do is evaluate(count) the records of the [AssetID] in this
sample data (26). and have that many 26 tab pages on my form. Then I would
like to have on each page a list of each WOID,WOComment,Date Created. for the
Asset.
To sum up open date input form enter date range. call query populate # tab
controls for each asset. displaying on each page the record or records that
apply to each asset.
A better way to accomplish this?