Hi everyone,
I have been working on a web site that uses ASP and an Access .mdb. I have created this sql statement which works locally but does not work on the web site. Are there some limitations to sql on a windows server connecting with a dsnless connection string? I have the same table and data on my local machine and the query works exactly as desired. When run from the web server nothing populates the <Select><option></option></Select> tag:
strSQL = "SELECT Time, Count(Time) AS CountOfTime FROM Availability GROUP BY Time, Date, ResortID, Scheduled, Unavailable HAVING (((Time)>=#16:34:00#) AND ((Date)=#4/18/2006#) AND ((ResortID)=5) AND ((Scheduled)=False) AND ((Unavailable)=False));"
The Time, Date, ResortID are all hard coded for testing purposes. Incidentally, if the date is "Todays" date then the Time argument is used to retrieve records that are still in the future. If the date is in the future then the time argument is eliminated and all time slices are retrieved.
I built and tested the query in Access and it works fine there. When viewed as 'SQL' in MSAccess the text of the query is available but when cut and pasted in the ASP page and used on the web server it does not work.
Thanks for any help you can provide on this.
Lamar
I have been working on a web site that uses ASP and an Access .mdb. I have created this sql statement which works locally but does not work on the web site. Are there some limitations to sql on a windows server connecting with a dsnless connection string? I have the same table and data on my local machine and the query works exactly as desired. When run from the web server nothing populates the <Select><option></option></Select> tag:
strSQL = "SELECT Time, Count(Time) AS CountOfTime FROM Availability GROUP BY Time, Date, ResortID, Scheduled, Unavailable HAVING (((Time)>=#16:34:00#) AND ((Date)=#4/18/2006#) AND ((ResortID)=5) AND ((Scheduled)=False) AND ((Unavailable)=False));"
The Time, Date, ResortID are all hard coded for testing purposes. Incidentally, if the date is "Todays" date then the Time argument is used to retrieve records that are still in the future. If the date is in the future then the time argument is eliminated and all time slices are retrieved.
I built and tested the query in Access and it works fine there. When viewed as 'SQL' in MSAccess the text of the query is available but when cut and pasted in the ASP page and used on the web server it does not work.
Thanks for any help you can provide on this.
Lamar