Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lorca
  • Content: Threads
  • Order by date
  1. lorca

    insert for each in request form

    Hi i have this bit of code Dim item For Each item in Request.Form Response.write "<input type=text name=FieldName value=" & item & ">" & vblf Response.write "<input type=text name=FieldValue value=" & Request.Form(item) & ">" & vblf Next which outputs all field names and their values onto a...
  2. lorca

    registering a dll as COM+

    Hello I've been asked to install a dll, from our software supplier as per below (see below). Never done anything with COM+ before, how can i go about this please ? i presume there are no security risks ? the dll is from a trusted supplier. My Services has COM+ event system started but COM+...
  3. lorca

    asp call stored procedure with optional parameters

    Hello I have a stored procedure below, which i call from an asp. all parameters are optional, so they may only fill out the varMake asp field for example. I do have this working for a simpler example for one parameter that is = as opposed to like, but this returns nothing ! any help...
  4. lorca

    include asp string in javascript alert

    hello in my asp i have a variable called Enquiry, which holds a value. I'd like, on the onlick of the save button to return the Enquiry variable in an alert ? how can i ? thanks rob
  5. lorca

    find duplicates query

    Hi I have this sql running which works ok, basially show potential duplicte customers by uprn and orders (DESC) by datelastmodified for the customer. problem is say a MR. SMITH is the first record (because somebody has just created him 2 minutes ago) his duplicate may have been created 2 months...
  6. lorca

    join/merge sql statements

    I have a SQL statement (i have a report in visual studio that creates a dataset) and calls this sqlstmt1 SELECT WARD_NAME, COUNT(*) AS CustomerCount, WARD_ID FROM dbo.vwLPGWards GROUP BY WARD_NAME, WARD_ID ORDER BY COUNT(*), WARD_NAME, WARD_ID this is based on a view (shown below) but the...
  7. lorca

    need to return scope_identity value as recordset value ?

    Hi I've got the following code but it does not return the value of the scope_identity in the variable llID. How can i get its value in a variable for use in another sql statement. thanks ian SQLstmt = "IF EXISTS(SELECT uniqueid FROM members WHERE uniqueID = '" & _ request("tempid") & "')"...
  8. lorca

    dateserial to find monday's date of previous week

    Hi I used the following code to find the first date from the previous month e.g. 01/05/2006 I'd like to return the date for the monday of the previous week so e.g. 19/06/2006 and also friday's date of the previous wek e.g. 23/06/2006 any ideas ? thanks rich =left(format(DateSerial(iif(...
  9. lorca

    display message box on screen

    hello I was trying to get a recordset value into a message box, which i managed and worked as so (after the user clicks save) dim oRSSaveUserMsg, msg_text set oRSSaveUserMsg = Server.CreateObject("ADODB.Recordset") getsaveusermsg oRSSaveUserMsg msg_text = oRSSaveUserMsg.Fields(1) <script...
  10. lorca

    error with dynamic stored procedure

    HI I'm trying to use dynamic stored procedures. My where clause is built up in the asp code, i have a stored procedure which calls that where clause and should display the info back to the screen, except i get an error Incorrect syntax near 'Col004' here is my stored procedure CREATE PROCEDURE...
  11. lorca

    error with ClearText(this) function

    Hi I've got 2 input types of text with a value that when clicked the value (set text) clears, except i get an error 'Object expected' I have to build my asp page up as a string, so excuse that javascript LPRSearchHead1 = "<script language=""JavaScript"" type=""text/javascript"">" & VBCRLF...
  12. lorca

    UNION SELECT -1

    Hi I have a temp table with 17 columns (Col001 - Col017) i'm trying to retrieve Col003 but do a union select -1 as SELECT DISTINCT PARSENAME(REPLACE(Col003, '/', '.'), 1) AS Expr1 FROM Temp UNION SELECT -1, '--All Licence Types--' it says must have equal number of expressions in their...
  13. lorca

    get value of select into hidden text box

    Hi How can you get the value of a select box into a hidden text box please ? thanks ian
  14. lorca

    extracting part of string for distinct values

    Hi I have a SQL table witch column LICTYPE which holds such values as 06/xxxxx/LIPREM 06/yyyyy/LIPREM 06/xxxyy/CLUB 06/yyxxx/CLUB 05/xxxxy/LATEMP In an ASP form, i'd like to have a select list of distinct LICTYPES such as LIPREM CLUB LATEMP etc etc so i need to loop through the contents of...
  15. lorca

    multiple selects in one report

    within one report within one project can you have multiple selects, for example i may have select * from Tablea select * from Tableb i can then run off 2 graphs each based on the seperate select statement, but the 2 graphs diplaying on one report. thanks
  16. lorca

    create timeframe graph

    hi I've got the code below, which works ok, allows the operator to choose parameters, for service, location and between dates. I'd like to create a timeframe graph as the result (showing total number of calls within each timeframe), for hourly timeframes 8-9, 9-10, 10-11 etc until 4-5. the time...
  17. lorca

    dateserial in report parameter

    HI i'm trying to setup a couple of report parameters for date start(1st day of currentmonth) and date end (last day of current month) so i set the data type as string, and the default value for non-queried to (date start for example) =format(DateSerial(Year(now), Month(now), 1),"dd/mm/yyyy")...
  18. lorca

    adding union select and parameter to multiple joins

    hello I'm using sql reporting services, and i'd like a parameter for a distinct list of values (distinct d.TYPEDESC) for the user to select on the report. I'd also like to add an 'ALL TYPES' at the top (which I've seen done as union select '-1' ?) using my code below how would i go about adding...
  19. lorca

    @@identity within asp page

    I'm trying to retrieve the last inserted record's id from my sqlstmt below and embedd it in an email, but no joy - doesn't fail but doesn't return the value llID. excuse the sql string, but i have to do it that way. thanks ian SQLstmt = "INSERT INTO tablename (Ename, Eorg, Eaddress1...
  20. lorca

    add grouping in report using lookup table

    I have the code below which works fine and outputs in report format using sql reporting. I also have a lookup table of postcodes (CTS_POSTCODES) which has a column Postcode with hunderds of rows such as M1 2AL M1 2BZ M12 2RT etc etc what i'd like to do is group the report by postcode...

Part and Inventory Search

Back
Top