Hello i am having a problem with cross tabs. I have never used crosstabs in access before and my boss just asked me if i could change around their crosstab. The way things are ran now is someone each week must type in the query, the dates they want the data to be between. They want to be able to be prompted to enter a start and an end date for the range. I tried adding a BETWEEN [Start Date] and [END DATE] but get an error saying problem obtaining data.
The database they use seems to have some problems which may be my problem but i dont think. The SQL they have now for the query the cross tab is built off of is:
SELECT DISTINCTROW Demand.[Part#], Parts.[Part Description], Demand.[Ship Date], Demand.Qty, [Ship Date].[Day of the Week], Parts.[Cycle Time], Parts.[Setup Time], [Demand]![Qty]*[Parts]![Cycle Time] AS Expr1
FROM (Demand INNER JOIN Parts ON Demand.[Part#] = Parts.[Part#]) INNER JOIN [Ship Date] ON Demand.[Ship Date] = [Ship Date].[Ship Date]
WHERE (((Demand.[Part#])='040001-001' Or (Demand.[Part#])='040011-001' Or (Demand.[Part#])='040021-001' Or (Demand.[Part#])='073542-001' Or (Demand.[Part#])='073552-001' Or (Demand.[Part#])='073562-001' Or (Demand.[Part#])='073572-001' Or (Demand.[Part#])='073582-001' Or (Demand.[Part#])='040001-002' Or (Demand.[Part#])='040011-002' Or (Demand.[Part#])='040021-002' Or (Demand.[Part#])='073543-001' Or (Demand.[Part#])='073553-001' Or (Demand.[Part#])='073563-001' Or (Demand.[Part#])='073573-001' Or (Demand.[Part#])='073583-001' Or (Demand.[Part#])='040003-002' Or (Demand.[Part#])='040013-002' Or (Demand.[Part#])='040023-002' Or (Demand.[Part#])='040038-003' Or (Demand.[Part#])='040058-003' Or (Demand.[Part#])='040078-003' Or (Demand.[Part#])='040098-003' Or (Demand.[Part#])='040118-003' Or (Demand.[Part#])='040039-003' Or (Demand.[Part#])='040059-003' Or (Demand.[Part#])='040079-003' Or (Demand.[Part#])='040099-003' Or (Demand.[Part#])='040119-003' Or (Demand.[Part#])='123456'));
Then in the cross tab under date the date they write >=#5/26/2003# And <=#6/1/2003# and change it each week
Thanks in advance
The database they use seems to have some problems which may be my problem but i dont think. The SQL they have now for the query the cross tab is built off of is:
SELECT DISTINCTROW Demand.[Part#], Parts.[Part Description], Demand.[Ship Date], Demand.Qty, [Ship Date].[Day of the Week], Parts.[Cycle Time], Parts.[Setup Time], [Demand]![Qty]*[Parts]![Cycle Time] AS Expr1
FROM (Demand INNER JOIN Parts ON Demand.[Part#] = Parts.[Part#]) INNER JOIN [Ship Date] ON Demand.[Ship Date] = [Ship Date].[Ship Date]
WHERE (((Demand.[Part#])='040001-001' Or (Demand.[Part#])='040011-001' Or (Demand.[Part#])='040021-001' Or (Demand.[Part#])='073542-001' Or (Demand.[Part#])='073552-001' Or (Demand.[Part#])='073562-001' Or (Demand.[Part#])='073572-001' Or (Demand.[Part#])='073582-001' Or (Demand.[Part#])='040001-002' Or (Demand.[Part#])='040011-002' Or (Demand.[Part#])='040021-002' Or (Demand.[Part#])='073543-001' Or (Demand.[Part#])='073553-001' Or (Demand.[Part#])='073563-001' Or (Demand.[Part#])='073573-001' Or (Demand.[Part#])='073583-001' Or (Demand.[Part#])='040003-002' Or (Demand.[Part#])='040013-002' Or (Demand.[Part#])='040023-002' Or (Demand.[Part#])='040038-003' Or (Demand.[Part#])='040058-003' Or (Demand.[Part#])='040078-003' Or (Demand.[Part#])='040098-003' Or (Demand.[Part#])='040118-003' Or (Demand.[Part#])='040039-003' Or (Demand.[Part#])='040059-003' Or (Demand.[Part#])='040079-003' Or (Demand.[Part#])='040099-003' Or (Demand.[Part#])='040119-003' Or (Demand.[Part#])='123456'));
Then in the cross tab under date the date they write >=#5/26/2003# And <=#6/1/2003# and change it each week
Thanks in advance