Automate A Basketball Schedule
I'm building an asp website with calendar for a High School Basketball team. A database holds dates for all events on the calendar. I want to build a schedule for a SEASON automatically based on the current date() they are visiting the site, and a SEASON is June of one year through May of the next. Example:
If they are accessing the schedule in January 2007, a query will filter all events for the 2006-2007 season (June of 06 through May of 07)
If they are accessing the schedule in August of 2007 I want them to get events filtered from June of 2007 through May of 2008 (the 2007 - 2008 season).
I can't seem to get my mind around the logic (and code) needed to build this query. If i build a query based on the year alone, by picking 2007 you would get the end of the 2006-2007 season and the beginning of the 2007-08 season (events from Jan 2007 through Dec 2007).
View Replies
ADVERTISEMENT
I used ASP and wrote a login / logout program. This is to capture people who comes into my lab from 0800 to 1700.
The data collected are stored in a table
Userid Date_in Time_in Date_out Time_out
123 4/3/2005 0900 4/3/2005 1000
121 4/3/2005 0925 4/3/2005 1100
122 4/3/2005 1200 4/3/2005 1400
127 4/3/2005 1500 4/3/2005 1600
125 4/3/2005 1503 4/3/2005 1630
122 5/3/2005 0800 5/3/2005 0845
The manual way of calculating utilization on 4/3/2005 will be [(Time between 0900 to 1100) + (Time between 1200 to 1400) + (Time between 1500 to 1630)] / (Time between 0800 to 1700) X 100%
The problem is that depending on what time the next person arrives, there might be an overlap in time. For example, A comes at 9am and leaves at 11am. B comes at 9.30am and leaves at 12pm. The total duration will be from 9.00am to 12 pm that is 3 hours instead of (rs("time_out")-rs("time_in")) = (11-9) + (12-9.5) = 4.5 hours
Is there a formula or way to automate this process?
View Replies
View Related
Does anyone know how to autome word mailmerge to create Letter forms using ASP?
View Replies
View Related
Everyday of my life the last year has started by searching through a lot websites in order to find the latest news, and then making a link to that news from my webpage. What I have always dreamt about is some kind of automation.
Is it possible to make a script in ASP that searches through a website and gathers info on title, URL and such, and then automatically inserting it into my website (via for instance a SQL database)?
View Replies
View Related
I have an ASP script that selects data from a database, treats the data and produces a report.Now i need to run that report daily, and i would like to automate the run - every day at n o´clock. What is the best way to do it?
View Replies
View Related
if it is possible to have a web page that can be created into a pdf via a click of a button, similar to the save as pdf option. Is this possible?
View Replies
View Related
I want to have an automated recordID with the following format:
<last 2 digits of the current year>+<last 2 digits of the current month>+<number series 001-999>
example: 0409001
(where 04 stands for 2004, 09 for the month of september, then 001 refers to the 1st record)
then when month changed to october the number will be reset to 001 so the recordID now must be 0410001
having that format i can't use the database itself by setting the recordID as autonumber only..
View Replies
View Related
I have the ff. data:
Customer Name
Date
Subject
Problem
then when the user submitted the form, the ticket number will be automatically generated with the following format:
<last 2 digits of the current year>+<last 2 digits of the current month>+<number series 001-999>
example: 0409001
(where 04 stands for 2004, 09 for the month of september, then 001 refers to the 1st record)
then all the data will be saved to the database.
my problem is how can i do this?
View Replies
View Related
I am generating rtfs. Is there anyway to automate the printing of the rtfs after they have been created?
View Replies
View Related
I want to create ASP page that shows the schedule of TV station. Since each day's (Monday - Sunday) schedule is different, and I want each day will display the schedule on that day of a week. I wonder if I need to create 7 different ASP pages and call different one on each day? This is just my idea, but I think this is not a good solution.
View Replies
View Related
I am trying to create a Function to delete records in database on daily basis. I am stuck with date/time.
Sql:
Delete * from MyTable where date = &date& 'not sure of quotes also.
How can I rewrite my sql to delete records daily at 8.00pm?
View Replies
View Related
I want to allow the users to shedule a particular task (shedule the time and date of inserting thier forms and data into the table ) such that i ll provide a simple form where the user can enter his name , age , and some other details at the end of this form , there is field to enter the date and time of inserting those fields into the table in the database,so that data inside this form will be inserted into the table as per the user scheduled date and time
View Replies
View Related
How to do the above without global.asa?
I need the script to run every 24 hours. Currently I am using database.
If rsDB("date") < DateAdd("h",-24, Now()) then
<--SCRIPT HERE-->
Then I have a script that puts the rsDB("date") to Now().
View Replies
View Related
Any way to do a Scheduled task without having access to a "Scheduled Task" feature in the hosting control panel. IOW, I want to run a single Update Table query every Sunday at Midnight but I don't want to have to manually run it. I use SQL 2000 on a Win2k machine.
View Replies
View Related
I'm trying to find a way where I can schedule a task to be run within a web site, either in VB (COM) or within the web site (ASP). What I want to do is to run a daily scheduled task which will cleanup a desired folder within the web site. As I say, this must be an automated scheduler which can kicked off by itself without any interaction from a user etc.
View Replies
View Related
how to create an on-call schedule. It just needs to be really simple. Basically a two column table with names on the left and dates on the right. There is a specific order that the names are in in the Access db and need to stay in that order to keep the schedule rotating properly.
I want the name of the person who is on-call this week to be at the top of the table and then when the on-call week is over that person drops to the bottom of the table. A typical on-call week is from Mon-Sun. Also making the dates populate correctly without having to manually enter them in the db
View Replies
View Related
i have this event sign-up program that displays events from access databases and allows a user to click on a sign-up button to sign up for these events. currently when viewing an individual summary, the users see a listing of events they've signed up for, but it's been suggested to create a grid schedule for a better visual.
these events cover a 9 day period (Friday through Saturday) and i was wondering if there's a relatively easy way to create a grid schedule for the users?
View Replies
View Related
We have a web application to allow user register a meeting and want to automatically add into their outlook calendar. how to do this in asp?
View Replies
View Related
I wanted to run an ASP script to send mails, to be executed every 24 Hours.
View Replies
View Related
I have developed a website in ASP 3.0 and Acesss 2000/SQl
Server.
I wan my web site sent invoices to my customer
automatically ...at some specified time
(lets say it execute ceratain ASP page at 3:00 am that
send emails)
how can i schedule that?
Should i write some program (EXE) that will run on web
seerv to do this task or do we have soem other decent
solution?
View Replies
View Related
I am in a Intranet project for Global telehone Directory for my company.Is there is a solution in which we can connect to the microsoft mail exchange server and get a details of a employee through Outlook schedulewhether he/she is available or not.
View Replies
View Related
I would like to know if there is any way to schedule an asp page to run once a month.
The purpose of this process is to automatically insert data to a table in a monthly basis to allow users to manupilate it without having them to add any fields to the table.
View Replies
View Related
Is it possible with ASP to schedule tasks such as the following:
A database contains hundreds of registered users. Within three days of their registration expiry an email should be automatically generated to inform all relevant users that their account will expire shortly.
A sheduled task should also run every night (say, at midnight) to remove expired accounts from the system.
View Replies
View Related
I need to write one program to schedule the job to run the DTS created at SQL Server 2000 with Global Variable passing in every time when user select. I have search from internet, there only have example written in Visual Basic, can any body help me because my company not have Visual Basic.
And When I try to copy the example from VB Code to ASP code, there are error :
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
After I check is because of ProgID "SQLDMOUtil.Job" used in code.
View Replies
View Related
I have a pure asp (Vbscript) page that manipulates data between MSAccess and
SQLServer2000. I'm trying to use the Scheduler app on the IIS server to run
this page nightly but there must be a better way of doing this.
How can I make my code in to an object and install it on the server and have
it schedule to run nightly?
Below is the code:
View Replies
View Related
I am developing site in asp where I need to call a url at every interval. Is there a way to automate this. I want to call the url every 15 or 30 mins.
Cureently I have written a asp script tp call it using
Set objWinHttp = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET",URL
objWinHttp.Send ' Send it.
strResponse3 = objWinHttp.ResponseText ' Get the response string from the object.
But it is not schedule..I can call it only when I rum the asp script. So is there any way I can schedule this url call for every 15/30 minutes.
Also forgot to mention : the site does not have that much traffic that I can add it in index page...there may be a user visiting the site in 5 hours time or within next 5 mins or for next 2 days there may be no visitor.
View Replies
View Related