Advertisement

01.19.2007 at 06:48AM PST, ID: 22128854
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Syntax Error

Asked by mustish1 in Active Server Pages (ASP)

Tags: , ,

Hi: Can any one please tell me that syntax error in my program
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Sybase][ODBC Driver][Adaptive Server Anywhere]Syntax error or access violation: near 'P' in ..., Off_LocFrom Pmt [P] Join PmtUser U On...

/reports/mgmt/Whiteboard.asp, line 49
------------------------------------------------------------------------------------------------------------------------
<!-- #include file="..\..\adovbs.inc" -->
<!-- #include file="../../inc/inc_dbaseOpen.asp" -->
<!-- #include file="../../inc/inc_dbaseCCOpen.asp" -->
<HTML>
<HEAD>
<TITLE>Payments report</TITLE>
<STYLE>
.ReportStyle
      {
      COLOR: "#000000";
      FONT-FAMILY: Verdana, Times, Arial;
      FONT-SIZE: 10px;
      LINE-HEIGHT: 13px;
      TEXT-DECORATION: none
      }      
.HeadingStyle
      {
      COLOR: "#000000";
      FONT-FAMILY: Verdana, Times, Arial;
      FONT-SIZE: 20px;
      LINE-HEIGHT: 15px;
      TEXT-DECORATION: none
      }      
</STYLE>
</HEAD>
<BODY BGColor="#EEF2D9" Text="#000000">
<%
Dim oConnDM

Dim dbRS

Dim nRows

Server.ScriptTimeout=6000

%>
<FORM Name="frmPaymentsReport" Action="PaymentsToExcel.asp" Method="POST">
<TABLE Border="0" CellPadding="0" CellSpacing="1">
<TR>

</TR>
<%
Set oConnDM = CreateObject("ADODB.Connection")
oConnDM.Open "ODBC; Driver=Adaptive Server Anywhere 6.0; DSN=Debtmaster; uid=dm; pwd=,,PeAches..;"
oConnDM.Execute "SET TEMPORARY OPTION CONNECTION_AUTHENTICATION='Company=Comtronic Systems Inc.;Application=Debtmaster;Signature=000fa55157edb8e14d818eb4fe3db41447146f1571g44ae200cfe156d4be0e55210235a4fa4d3d9353a'"

sSQL = "Select DU.User_ID As Collector, Count(*) As TotalPmts, Sum(Princ_Amt+Show_Int_Amt+Show_Fee_Amt) As Gross,Sum((Princ_Amt+Show_Int_Amt+Show_Fee_Amt)-(Clt_Princ_Amt+Clt_Int_Amt+Clt_Fee_Amt)) As Fee,Sum(Case Pmt_Code  When 'BCK' Then 1.0 When 'DBK' Then 1.0 When 'NGC' Then 1.0 Else 0 End) As NGChecks,Sum(Case Pmt_Code  When 'BCK' Then (Princ_Amt+Show_Int_Amt+Show_Fee_Amt) When 'DBK' Then (Princ_Amt+Show_Int_Amt+Show_Fee_Amt) When 'NGC' Then (Princ_Amt+Show_Int_Amt+Show_Fee_Amt) Else 0 End) As NGPmts,(Case NGChecks When 0 Then 0 Else NGChecks/TotalPmts*100 End) As NGRate,Goal, (Case Goal When 0 Then 0 Else Fee/Goal*100 End) As GoalPct, Team, Off_LocFrom Pmt P Join PmtUser U On U.Pmt_ID=P.Pmt_ID Join DMUser DU On DU.User_ID=U.User_ID Where Pmt_Date Between '2007-01-01' And '2007-01-18' Group By DU.User_ID, Goal, Team, Off_Loc Order By Off_Loc, Team, DU.User_ID"

Set dbRS = oConnDM.Execute(sSQL, ,adCmdTxt)
nRows=0
%>
      <TR>
            <TD>
            <TABLE Border="1" CellPadding="0" CellSpacing="1">
                  <TR>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Collector ID</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Total Payments</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Gross</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Fee</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">NG Checks</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">NG Payments</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">NG Rate</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Goal</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Goal PCT</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Team</FONT></TD>
                        <TD ALIGN=CENTER><FONT CLASS="ReportStyle">Office Location</FONT></TD>
<%
      Do While Not dbRS.EOF
%>
                  <TR>
                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=CStr(nRows+1)%></FONT>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Collector"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Collector"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("TotalPmts"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("TotalPmts"))%>>
                        </TD>


                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Gross"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Gross"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Fee"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Fee"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("NGChecks"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("NGChecks"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("NGPmts"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("NGPmts"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("NGRate"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("NGRate"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Goal"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Goal"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Goal"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Goal"))%>>
                        </TD>


                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Goal"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Goal"))%>>
                        </TD>


                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("GoalPct"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("GoalPct"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Team"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Team"))%>>
                        </TD>

                      <TD NOWRAP>
                              <FONT CLASS="ReportStyle"><%=Trim(dbRS.Fields("Off_Loc"))%></FONT>
                              <INPUT Type=HIDDEN Name=DMID Value=<%=Trim(dbRS.Fields("Off_Loc"))%>>
                        </TD>
<%
                  nRows=nRows + 1
                  dbRS.MoveNext
                  Loop
%>
<TR>
      <TD COLSPAN=4 ALIGN="CENTER">
      <INPUT TYPE="SUBMIT" NAME="ExportExcel" VALUE="Export to Excel">
      </TD>
</TR>      

</TABLE>
</FORM>

</BODY>
</HTML>
Start Free Trial
[+][-]01.19.2007 at 06:54AM PST, ID: 18349390

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:07AM PST, ID: 18349500

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: syntax, violation, connection_authentication
Sign Up Now!
Solution Provided By: apresto
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.19.2007 at 07:22AM PST, ID: 18349638

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:26AM PST, ID: 18349680

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:33AM PST, ID: 18349743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:34AM PST, ID: 18349751

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:40AM PST, ID: 18349828

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2007 at 07:43AM PST, ID: 18349855

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32