hallo oliver
vielleicht kannste mir noch mal helfen...*liebguck*
also, der ganze vorgang klappt ja schon super, hab da aber noch ein kleines problem:
habe paar abfragen, die vorher noch geändert werden müssen, ehe sie ausgeführt und nach excel gelangen. dies soll natürlich auch automatisch geschehen.
hier ein beispiel:
SELECT Daten.[Request-ID], Daten.[Date (closed)], Daten.[Date (Creation)], Year([Date (Creation)]) AS Jahr, Month([Date (Creation)]) AS Monat, Daten.Status, Daten.Complexity, Daten.Country, Daten.[Problem Origin], Daten.Topic, Daten.[Cycle time (in process)], Daten.[Cycle time (pending)], Abs(Left([Cycle time (in process)],InStr(1,[Cycle time (in process)],":")-1)) AS H_in_Process, Abs(Right([Cycle time (in process)],2)) AS Min_in_Process, Daten.[Short Description], Daten.Site, Daten.[Cycle time (open)], Abs(Left([Cycle time (open)],InStr(1,[Cycle time (open)],":")-1)) AS H_open, Abs(Right([Cycle time (open)],2)) AS Min_open, Daten.[User-ID], Daten.Priority, Daten.Caretaker
FROM Daten
WHERE (((Year([Date (Creation)]))=2005) AND ((Month([Date (Creation)]))=6) AND ((Daten.[Cycle time (open)])<>""))
ORDER BY Daten.[Request-ID], Month([Date (Creation)]);
--> WHERE (((Year([Date (Creation)]))=2005) AND ((Month([Date (Creation)]))=6) --> hier muss je nach monat die zahl (hier: 6) geändert werden.
wie macht man das am besten?
gruß
assunta |