User Profile

Collapse

Profile Sidebar

Collapse
Stevee
Stevee
Last Activity: Feb 19 '08, 08:23 PM
Joined: Sep 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Stevee
    replied to missing operator
    Thanks for that, I'll give it a go.

    I'm sure I'll be back soon, hope that's ok.
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Thanks for that, trying to find the function that should pass the PUBID value, I have checked the paths and they all seem fine, any ideas?

    Steve....
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Thanks for tonight, hope to catch you tomorrow.

    Stevee...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Hate being stoopid but why doesn't it work when I now take out the 2 lines you gave me earlier:

    Response.Write( "[" & strSQL & "]")
    Response.End

    Stevee.
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    All it's actually doing is printing the 4th line:

    strSQL = "SELECT * FROM tblPublications WHERE PubID = " & PUBID

    Stevee
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    When I take out the:

    Response.Write( "[" & strSQL & "]")
    Response.End

    you had me put in earlier then I get:

    Error Type:
    Microsoft JET Database Engine (0x80040E14)
    Syntax error (missing operator) in query expression 'PubID ='.
    /asp/functions.asp, line 18

    When I put it in I get the

    Included file - top.asp and then start...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    I will give it a go see what happens, and let you know. I was assured that all these asp scripts I have inherited worked as were, and was told it was merely a case of changing paths to the database, but it looks like I've recieved a bag of worms!

    Thanks for all your help, hope you'll be around a while longer.

    Stevee...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    I'm sorry, but what has changed?
    It now doesn't get an error it goes further into it but isn't actually finding the database name (I think):

    [SELECT * FROM tblPublications WHERE PubID = ]

    is written on the browser window, but now the #include file - top.asp (slightly different than the header.asp) is showing.
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Or do I have to remove the line breaks?
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    So altogether:

    Function SetCurrentPub(P ubID)
    OpenDB
    Set rs=Server.Creat eObject("ADODB. Recordset")
    'strSQL = "SELECT * FROM tblPublications WHERE PubID = " & PUBID

    strSQL = "SELECT * FROM tblPublications WHERE PubID = " & PUBID
    Response.Write( "[" & strSQL & "]")
    Rresponse.End

    rs.Open strSQL, conn
    ...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    So like this:

    Function SetCurrentPub(P ubID)
    OpenDB
    Set rs=Server.Creat eObject("ADODB. Recordset")
    'strSQL = "SELECT * FROM tblPublications WHERE PubID = " & PUBID

    strSQL = "SELECT * FROM tblPublications WHERE PubID = " & PUBID
    Response.Write( "[" & strSQL & "]")
    Rresponse.End

    rs.Open strSQL, conn
    ...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Where in the code, right at the begining before everything else?...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Well I have to assume it's an integer, it's actually a database table name, it now gives an:

    Unterminated string constant
    /asp/functions.asp, line 13, column 61

    Columns throw me a little.

    Stevee....
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to missing operator
    Thanks, I'll try them both, will advise. :-)
    See more | Go to post

    Leave a comment:


  • Stevee
    started a topic missing operator

    missing operator

    Hi, assistance would be appreciated, I have inherited a database and a bunch of .asp scripts, I have amended the database and have managed to get to view etc on line using aspmaker, GREAT (I thought). The asp's are all used to run on a different server I am now using a PC, WIndows, XP Pro through IIS. Having not used asp before I thought I'd have a quick look and see.
    The problem I am getting is:

    Error Type:
    Microsoft...
    See more | Go to post

  • Stevee
    replied to Sum of a column (in a Table)
    Thankyou, I had to amend slightly (one * 1) + etc but this works great:

    [CODE=javascript]
    <script type="text/javascript">
    function startCalc()
    {
    one = document.getEle mentById("info" ).value;
    two = document.getEle mentById("info1 ").value;
    three = document.getEle mentById("info2 ").value;
    total = (one * 1) + (two * 1) + (three * 1);
    total...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to Sum of a column (in a Table)
    Sorry, I did no better than a "D" in GCE Math some 31 years ago, and that lot just wasted me. can you assist with the toFix please...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to Sum of a column (in a Table)
    Gotcha, thankyou.

    But why when it adds up 2 of the combo numbers ie 19.52 + 100 it equals 119.52

    However when I add 3 of the combo numbers ie 19.52 + 100 + 99 it equals 218.51999999999 998...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to Sum of a column (in a Table)
    Right, I have tried that again and the TotalValue gives me the NaN
    [CODE=javascript]
    <script type="text/javascript">
    function startCalc()
    {
    one = parseFloat(docu ment.getElement ById("info").va lue);
    two = parseFloat(docu ment.getElement ById("info1").v alue);
    three = parseFloat(docu ment.getElement ById("info2").v alue);
    document.getEle mentById("Total Value").innerHT ML...
    See more | Go to post

    Leave a comment:


  • Stevee
    replied to Sum of a column (in a Table)
    [code=javascript]
    <script type="text/javascript">
    function startCalc()
    {
    one = parseFloat(myli st=document.get ElementById("in fo").value);
    two = parseFloat(myli st=document.get ElementById("in fo1").value);
    three = parseFloat(myli st=document.get ElementById("in fo2").value);
    document.getEle mentById("Total Value").innerHT ML = parseFloat(one + two + three);...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...