I have a make-table query that was working and all of a sudden it is not working. There have been no changes to the query or code that runs the query (as far as I know). Here is the Query:
SELECT qryCalFilter.Date AS EventDate, IIf(Not IsNull([time]),Format([time],'h:nn ampm'),' ')
AS EventTime, [eventtype] & IIf([eventtype]= 'deposition', ' (Deponent: ' & [deponent] & ')', '')
AS Event, Trim([casename]) & IIf(Not IsNull([additcases]),
'(Also: ' & Trim([additcases]) & ')', '') & ' - Matter: ' & [FileNumber] &
' (Opp: ' & [plaintiffscounsel] & ') ' & County & '/' & Court AS Cases,
Trim([city]) & ' - ' & [location] AS Loc, qryCalFilter.EventStatus,
qryCalFilter.Responsible, IIf([isamocolead]=-1,' * LEAD * ',' ') AS Lead,
qryCalFilter.Comments, qryCalFilter.EventID
INTO tblTEMPEventList
FROM qryCalFilter, tblPrintDates
WHERE tblCalendar.Date Between #1/1/2004# and #2/28/2005#
If I remove the line, INTO tblTEMPEventList, then the query works. I get data from the query, qryCalFilter. I don't understand why it just all of a sudden stops working.
Can you please help?
Thanks,
enak
SELECT qryCalFilter.Date AS EventDate, IIf(Not IsNull([time]),Format([time],'h:nn ampm'),' ')
AS EventTime, [eventtype] & IIf([eventtype]= 'deposition', ' (Deponent: ' & [deponent] & ')', '')
AS Event, Trim([casename]) & IIf(Not IsNull([additcases]),
'(Also: ' & Trim([additcases]) & ')', '') & ' - Matter: ' & [FileNumber] &
' (Opp: ' & [plaintiffscounsel] & ') ' & County & '/' & Court AS Cases,
Trim([city]) & ' - ' & [location] AS Loc, qryCalFilter.EventStatus,
qryCalFilter.Responsible, IIf([isamocolead]=-1,' * LEAD * ',' ') AS Lead,
qryCalFilter.Comments, qryCalFilter.EventID
INTO tblTEMPEventList
FROM qryCalFilter, tblPrintDates
WHERE tblCalendar.Date Between #1/1/2004# and #2/28/2005#
If I remove the line, INTO tblTEMPEventList, then the query works. I get data from the query, qryCalFilter. I don't understand why it just all of a sudden stops working.
Can you please help?
Thanks,
enak