Hi there, I have following make-table query within a macro which contains a long list of queries, in Access 2003. Normally when processing small dataset, this query runs reasonably quickly. But when processing large data, this query takes hours and then I often get an error that cannot open Holiday table.
Can someone please help me with some VBA code that I could use to create this table or if there is any other solution that could help me with this issue. Thanks
SELECT tbl.ID, Tbl.EntryDate, tbl.EndDate, Dates.Date AS hol_dte, tbl.Valid, 0 AS Holiday, Dates.Weekday, No AS Sent_Hol, No AS Del_Hol INTO Holiday
FROM tbl, Dates
WHERE (((Dates.Date)>=Int([tbl]![EntryDate]) And (Dates.Date)<=Int([tbl]![EndDate])) AND ((tbl.Valid)=Yes));
Can someone please help me with some VBA code that I could use to create this table or if there is any other solution that could help me with this issue. Thanks
SELECT tbl.ID, Tbl.EntryDate, tbl.EndDate, Dates.Date AS hol_dte, tbl.Valid, 0 AS Holiday, Dates.Weekday, No AS Sent_Hol, No AS Del_Hol INTO Holiday
FROM tbl, Dates
WHERE (((Dates.Date)>=Int([tbl]![EntryDate]) And (Dates.Date)<=Int([tbl]![EndDate])) AND ((tbl.Valid)=Yes));