Sorry about that. Here is the SQL query:
SELECT Projects.ProjectId, Phase.Phase, Projects.StartDate, Projects.EndDate, Phase.StartDate, Phase.EndDate FROM Phase INNER JOIN Projects ON Phase.ProjectId = Projects.ProjectId WHERE (Projects.StartDate between '" & StartOfGraph & "' and '" & EndOfGraph & "' or Projects.EndDate between '" & StartOfGraph & "' and '" & EndOfGraph & "') and (phase.StartDate is not null or phase.EndDate is not null) ORDER BY Projects.StartDate, Projects.EndDate, Phase.StartDate, Phase.EndDate;
If I print the results of the SQL statement, I get the following
SELECT Projects.ProjectId, Phase.Phase, Projects.StartDate, Projects.EndDate, Phase.StartDate, Phase.EndDate FROM Phase INNER JOIN Projects ON Phase.ProjectId = Projects.ProjectId WHERE (Projects.StartDate between '10/1/2006' and '3/30/2007' or Projects.EndDate between '10/1/2006' and '3/30/2007') and (phase.StartDate is not null or phase.EndDate is not null) ORDER BY Projects.StartDate, Projects.EndDate, Phase.StartDate, Phase.EndDate;
Thanks,
Mike
Main Topics
Browse All Topics





by: carlmahonPosted on 2006-11-17 at 17:00:02ID: 17969726
Is there a SQL query? I am confused why there is a SQL error if this code is just loading variables.
Which line is 344