Question

Mathematics in ASP, VBScript

Asked by: GegH

I have a number of values that are returned from a number of fields in a database for a timesheet (ie. hours of the days worked on a project).
I need to add these up to give a value at the end of the row and another lot at the end of the column.
Can this be done at on the ASP page. It doesn't need to be written back to the database, it is just for the user to work out how many hours he/she has worked.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-28 at 10:20:13ID24851862
Topics

Active Server Pages (ASP)

,

Miscellaneous Web Development

,

Adobe Dreamweaver

Participating Experts
1
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. timesheet
    Hi guys I dont have experience with HTML and javascript, and i have a task to do in javascript Its something like TimeSheet, i have 4 rows each for each task, and 7 colums each for everyday user has to enter how many hours he worked on each task every day, once user enters...
  2. Timesheet
    AgentLogin AgentGivenName AgentSurName Duration EventType Time Timestamp Agt No Agent Duration Event Time Timestamp 877 Eric Kaiser 0 LI 11:11:29 1/3/2005 11:11 877 Eric Kaiser 0 NR 11:11:29 1/3/2005 11:11 877 Eric Kaiser 6 LO ...
  3. Timesheet application design
    I have customized the time tracking application from Microsoft to suit my client's business workflow. One of their requirements is however to provide a timesheet entry screen that closely resembles their timesheet (currently an Excel sheet). I am a newbie in asp.net and i d...
  4. mysql_affected_rows() in asp vbscript
    Is it possible to use mysql_affected_rows() with ASP Vbscript? I would like to determine if a user has updated anything in the database and this seems to be the most efficient method. If this isn't possible is there another way?
  5. ASP Timesheet Form
    I have a timesheet form that Updates Multiple rows. I now need to be able to insert a new row. 2 Things seem to be happening. 1 is it inserts the row but not the initial values i'm expecting (i.e WeekBegin date and tEmployeeNum.) 2 is both the update button and insert button ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: carrzkissPosted on 2009-10-28 at 10:30:34ID: 25685912

This will give you the sum of the value
(Change the OrderPrice to your Column Name
 Change the Orders to your Table Name)

sql = "SELECT SUM(OrderPrice) AS OrderTotal FROM Orders"
rs.open sql, conn

rs("OrderTotal") <== This will give you the total.

Carrzkiss

 

by: GegHPosted on 2009-10-28 at 10:52:47ID: 25686150

Thankyou carrzKiss
I think i am missing something.
I have a table called TimeLog (in msAccess), and a Recordset called rsTime. The Columns are tMon, tTues, tWed, tThurs, tFri, tSat, tSun.
i Suppose the sql statement goes in the <HEAD> and the rs("OrderTotal") goes in the <BODY> where you want the total to show?
When i do this i get an Error:

Microsoft VBScript runtime error '800a01a8'
Object required: 'rsTotal'
/Timesheet/TimesheetEd.asp, line 166

I am pretty green at this, is there anything else i should be doing?

 

by: carrzkissPosted on 2009-10-28 at 11:09:23ID: 25686360

What is the type of Field that these are?

tMon, tTues, tWed, tThurs, tFri, tSat, tSun

Are they Date/Time  (or)  Number

 

by: carrzkissPosted on 2009-10-28 at 11:34:18ID: 25686661

See if this is what you are wanting?
This is assuming your columns are of Type NUMBER
============
http://ee.cffcs.com/Q_24851862/Q_24851862.asp?id=1
code
http://ee.cffcs.com/Q_24851862/Q_24851862.zip

Good Luck
Carrzkiss

 

by: carrzkissPosted on 2009-10-28 at 11:35:19ID: 25686667

also.
The example above is assuming that you want to calculate the total of all the days in the week to give the person their total hours of the week?

Carrzkiss

 

by: GegHPosted on 2009-10-28 at 14:22:42ID: 25688479

Thankyou.
The fields are numbers. And i'm with you about needing to calculate the hours of the days etc..
I think they may also wish to calculate the hours on a particular project as well, but that should be a doddle in comparison.
I am have many issues with this timesheet thing, Trying to write multiple rows of data with a single submit button, i'm scabbling around a bit. Any tips for that?
I will try the Sum tomorrow when i get in to work. Thankyou for your help.

 

by: GegHPosted on 2009-10-30 at 04:09:10ID: 25701760

Thankyou Carrzkiss for both posts,
I gather what you are saying is to create the Maths in Access with a query, then display it on the page once it is submited by having a recordset linked to the query.
So, to get a daily sum for each person on any given week, the query will need to Sumerise Mon-Sun for every change in WeekNo and Person.
The Dynamic page then Filters the page for the Current WeekNo and Person. Is that correct?

In this case your other post "ASP Access Database UPDATE Multiple Rows/Columns" to dynamically update and refresh multiple rows will be even more important.

 

by: carrzkissPosted on 2009-10-30 at 22:43:04ID: 25708628

I will look at both of the post over the weekend and should have something together for you by the end of the weekend of the beginning of the week.

Have a Happy & Goolish Halloween.

Carrzkiss

 

by: GegHPosted on 2009-10-31 at 11:44:43ID: 25710966

carrzkiss,
I've had a look at the maths issue and worked it out  (with your help).
Not to create the query within Access and then show the results, but to create the query as a script in ASP.
I've created a second recordset with the same filter criteria as the main RS. Only this one creates a sum of the column. Sad as it is, i have a huge smile on my face at the moment, it seems to work??
All to do now is for the form to Update the database and refresh with the updated info and i'll be almost there.
Thankyou so much for your help.
GegH

 

by: carrzkissPosted on 2009-10-31 at 12:53:33ID: 25711256

can you please show the code that you are using now?

 

by: GegHPosted on 2009-10-31 at 16:38:14ID: 25712051

This is the whole code/page

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="../Connections/Timesheet.asp" -->
<%
' *** Edit Operations: declare variables
 
Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd
 
Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId
 
Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i
 
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Request.QueryString
End If
 
' boolean to abort record edit
MM_abortEdit = false
 
' query string to execute
MM_editQuery = ""
%>
<%
' *** Update Record: set variables
 
If (CStr(Request("MM_update")) = "TimeEd" And CStr(Request("MM_recordId")) <> "") Then
 
  MM_editConnection = MM_Timesheet_STRING
  MM_editTable = "tbl_TimeLog"
  MM_editColumn = "tID"
  MM_recordId = "" + Request.Form("MM_recordId") + ""
  MM_editRedirectUrl = ""
  MM_fieldsStr  = "tProjNum|value|tStage|value|tTask|value|tMon|value|tTues|value|tWed|value|tThurs|value|tFri|value|tSat|value|tSun|value"
  MM_columnsStr = "tProjNum|',none,''|tStage|',none,''|tTask|',none,''|tMon|none,none,NULL|tTues|none,none,NULL|tWed|none,none,NULL|tThurs|none,none,NULL|tFri|none,none,NULL|tSat|none,none,NULL|tSun|none,none,NULL"
 
  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
  Next
 
  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If
 
End If
%>
<%
' *** Update Record: set variables
 
If (CStr(Request("MM_update")) = "TimeEd" And CStr(Request("MM_recordId")) <> "") Then
 
  MM_editConnection = MM_Timesheet_STRING
  MM_editTable = "tbl_TimeLog"
  MM_editColumn = "tID"
  MM_recordId = "" + Request.Form("MM_recordId") + ""
  MM_editRedirectUrl = "TimesheetList.asp"
  MM_fieldsStr  = "tProjNum|value|tStage|value|tTask|value|tMon|value|tTues|value|tWed|value|tThurs|value|tFri|value|tSat|value|tSun|value"
  MM_columnsStr = "tProjNum|',none,''|tStage|',none,''|tTask|',none,''|tMon|none,none,NULL|tTues|none,none,NULL|tWed|none,none,NULL|tThurs|none,none,NULL|tFri|none,none,NULL|tSat|none,none,NULL|tSun|none,none,NULL"
 
  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
  Next
 
  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If
 
End If
%>
 
<%
' *** Update Record: construct a sql update statement and execute it
 
If (CStr(Request("MM_update")) <> "" And CStr(Request("MM_recordId")) <> "") Then
 
  ' create the sql update statement
  MM_editQuery = "update " & MM_editTable & " set "
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
      MM_formVal = MM_emptyVal
    Else
      If (MM_altVal <> "") Then
        MM_formVal = MM_altVal
      ElseIf (MM_delim = "'") Then  ' escape quotes
        MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
      Else
        MM_formVal = MM_delim + MM_formVal + MM_delim
      End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
      MM_editQuery = MM_editQuery & ","
    End If
    MM_editQuery = MM_editQuery & MM_columns(MM_i) & " = " & MM_formVal
  Next
  MM_editQuery = MM_editQuery & " where " & MM_editColumn & " = " & MM_recordId
 
  If (Not MM_abortEdit) Then
    ' execute the update
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
 
    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If
 
End If
%>
<%
Dim rsTime__MMColParam
rsTime__MMColParam = "1"
If (Request.QueryString("WeekCh") <> "") Then 
  rsTime__MMColParam = Request.QueryString("WeekCh")
End If
%>
<%
Dim rsTime__MMColParam2
rsTime__MMColParam2 = "1"
If (Request.QueryString("UserNameCH")   <> "") Then 
  rsTime__MMColParam2 = Request.QueryString("UserNameCH")  
End If
%>
<%
Dim rsTime
Dim rsTime_numRows
 
Set rsTime = Server.CreateObject("ADODB.Recordset")
rsTime.ActiveConnection = MM_Timesheet_STRING
rsTime.Source = "SELECT *  FROM tbl_TimeLog  WHERE tWeekBegin = '" + Replace(rsTime__MMColParam, "'", "''") + "' AND tEmployeeNum = '" + Replace(rsTime__MMColParam2, "'", "''") + "'"
rsTime.CursorType = 0
rsTime.CursorLocation = 2
rsTime.LockType = 4
rsTime.Open()
 
rsTime_numRows = 0
%>
<%
Dim rsTotal__MMColParam
rsTotal__MMColParam = "1"
If (Request.QueryString("WeekCH") <> "") Then 
  rsTotal__MMColParam = Request.QueryString("WeekCH")
End If
%>
<%
Dim rsTotal__MMColParam2
rsTotal__MMColParam2 = "1"
If (Request.QueryString("UserNameCH") <> "") Then 
  rsTotal__MMColParam2 = Request.QueryString("UserNameCH")
End If
%>
<%
Dim rsTotal
Dim rsTotal_numRows
 
Set rsTotal = Server.CreateObject("ADODB.Recordset")
rsTotal.ActiveConnection = MM_Timesheet_STRING
rsTotal.Source = "SELECT Count(tID), Count(tWeekBegin), Sum(tMon), Sum(tTues), Sum(tWed),Sum(tThurs), Sum(tFri), Sum(tSat), Sum(tSun)  FROM tbl_TimeLog  WHERE tWeekBegin = '" + Replace(rsTotal__MMColParam, "'", "''") + "' AND tEmployeeNum = '" + Replace(rsTotal__MMColParam2, "'", "''") + "'"
rsTotal.CursorType = 0
rsTotal.CursorLocation = 2
rsTotal.LockType = 1
rsTotal.Open()
 
rsTotal_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
 
Repeat1__numRows = 10
Repeat1__index = 0
rsTime_numRows = rsTime_numRows + Repeat1__numRows
%>
 
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../HMYWebStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center"> 
  <table width="90%" height="50" border="0" cellpadding="5" cellspacing="0" >
    <tr valign="top"> 
      <td width="444" height="40" valign="middle"> <form name="Google" id="GoogleSearch" method="Get" action="http://www.google.co.uk/search">
          <div align="left"> 
            <input type="text"   valign="middle" name="q" height="25" size="40" maxlength="255" value="" />
            <input name=meta type=hidden id=cty value="cr=countryUK|countryGB">
            <input type="submit" valign="middle" value="Google UK Search" />
          </div>
        </form></td>
      <td width="65" valign="middle"><form action="http://www.ihsti.com/scripts/ti_logon/ti_logon.asp" method="post" name="form1" target="_blank" id="form1">
          <label> 
          <input name="imageField" type="image" src="/Images/IHS_login_2.png" align="middle" width="50" height="50" />
          </label>
          <input name="send"     type="hidden" id="send" value="Submit" />
          <input name="Welcome"  type="hidden" id="Welcome" />
        </form></td>
      <td width="175" height="40" valign="middle"> <a href="https://secure.projectminder.com/login.aspx" target="_blank"><img src="/Images/ProjMindText.gif" alt="Project Mider Login" width="174" height="30" border="0" /></a></h5></td>
      <td width="116" height="40" valign="middle"><div align="right"> <a href="http://www.hmy.uk.com" target="_blank"><img src="/Images/HMY-ID.gif" alt="HMY Website" width="116" height="42" border="0" /></a></div></td>
    </tr>
  </table>
  <table width="90%" height="30" border="0" cellpadding="5" cellspacing="0" >
    <tr> 
      <td width="92" height="40"><h5><he><a href="../News.asp">News/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="/GenTemplates.asp">Templates/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../EmpHandbook.asp">Employee 
          Handbook/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../QA.asp">QA 
          Procedures/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../ProjData.asp">Project 
          Database/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../TechGuide.asp">Technical 
          Guidance</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../training.asp">Training/</a></he></h5></td>
      <td width="92" height="40"><h5><he><a href="../StaffRes.asp">Staff 
          Resources/</a></he></h5></td>
      <td width="92" height="40"><div align="right"> 
          <h5><a href="../ExterLink.asp">Useful 
            Links/</a></h5>
        </div></td>
    </tr>
  </table>
  <p1></p1> 
  <table width="90%" height="50" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
    <tr> 
      <td width="92" height="40"><h5><he>Archive//</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><h5><he>&nbsp;</he></h5></td>
      <td width="92" height="40"><div align="right"></div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</div>
<p align="left"> <table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr> 
    <td><form action="<%=MM_editAction%>" method="POST" name="TimeEd" id="TimeEd">
        <table border="0" cellpadding="5" cellspacing="5">
          <tr> 
            <td><input name="Update" type="submit" id="Update" value="Update"></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>tID</td>
            <td>tWeekBegin</td>
            <td>tEmployeeNum</td>
            <td>tProjNum</td>
            <td>tStage</td>
            <td>tTask</td>
            <td>tMon</td>
            <td>tTues</td>
            <td>tWed</td>
            <td>tThurs</td>
            <td>tFri</td>
            <td>tSat</td>
            <td>tSun</td>
          </tr>
          <% While ((Repeat1__numRows <> 0) AND (NOT rsTime.EOF)) %>
          <tr> 
            <td><%=(rsTime.Fields.Item("tID").Value)%></td>
            <td><%=(rsTime.Fields.Item("tWeekBegin").Value)%></td>
            <td><%=(rsTime.Fields.Item("tEmployeeNum").Value)%></td>
            <td> 
              <input name="tProjNum" type="text" id="tProjNum" value="<%=(rsTime.Fields.Item("tProjNum").Value)%>" size="5"></td>
            <td> 
              <input name="tStage" type="text" id="tStage" value="<%=(rsTime.Fields.Item("tStage").Value)%>"></td>
            <td> 
              <input name="tTask" type="text" id="tTask" value="<%=(rsTime.Fields.Item("tTask").Value)%>"></td>
            <td> 
              <input name="tMon" type="text" id="tMon" value="<%=(rsTime.Fields.Item("tMon").Value)%>" size="5"></td>
            <td> 
              <input name="tTues" type="text" id="tTues" value="<%=(rsTime.Fields.Item("tTues").Value)%>" size="5"></td>
            <td> 
              <input name="tWed" type="text" id="tWed" value="<%=(rsTime.Fields.Item("tWed").Value)%>" size="5"></td>
            <td> 
              <input name="tThurs" type="text" id="tThurs" value="<%=(rsTime.Fields.Item("tThurs").Value)%>" size="5"></td>
            <td> 
              <input name="tFri" type="text" id="tFri" value="<%=(rsTime.Fields.Item("tFri").Value)%>" size="5"></td>
            <td> 
              <input name="tSat" type="text" id="tSat" value="<%=(rsTime.Fields.Item("tSat").Value)%>" size="5"></td>
            <td> 
              <input name="tSun" type="text" id="tSun" value="<%=(rsTime.Fields.Item("tSun").Value)%>" size="5"></td>
          </tr>
          <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsTime.MoveNext()
Wend
%>
<tr>
  <td><p>&nbsp;</p></td>
  <td><p>&nbsp;</p></td>
  <td><p>&nbsp;</p></td>
  <td><p>&nbsp;</p></td>
  <td><p>&nbsp;</p></td>
  <td><p>Total:</p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1002").Value)%> </p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1003").Value)%></p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1004").Value)%></p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1005").Value)%></p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1006").Value)%></p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1007").Value)%></p></td>
  <td><p><%=(rsTotal.Fields.Item("Expr1008").Value)%></p></td>
</tr>
          
</table>
        <% Do Until rsTime.EOF = True %>
        <input type="hidden" name="MM_update" value="TimeEd">
        <input type="hidden" name="MM_recordId" value="<%= rsTime.Fields.Item("tID").Value %>">
        <% Loop %>
      </form>
      <p>&nbsp;</p></td>
  </tr>
</table></p>
</body>
</html>
<%
rsTime.Close()
Set rsTime = Nothing
%>
<%
rsTotal.Close()
Set rsTotal = Nothing
%>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:

Select allOpen in new window

 

by: GegHPosted on 2009-11-03 at 06:34:33ID: 25729288

Any Luck?

 

by: carrzkissPosted on 2009-11-03 at 11:24:01ID: 25732485

Sorry GegH
I have been working on other projects and forgot all about this one.

Have you done anything to it since we last spoke?
As of right now, you have taken the script that I wrote and implemented it into your DW code here, and it seems to be working for you.

So, does that mean that this Question is done?_________

And the only thing that is needed now is the other Question to be completed?_______

If the other question is all that is left to do, let me know and I will jump over there and see what I can do with it.

Carrzkiss

 

by: GegHPosted on 2009-11-03 at 14:56:31ID: 31647103

The maths question worked out. The update question has moved to:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_24851862.html

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...