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 Mike Lewis 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: *

  1. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    Thanks for your assistance...v much appreciate :)
  2. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    I'm not sure, I've just changed it back and it is now working after checking out your note, whereas before I was sure I was getting the same multirow error. I also didn't have a PK just an identity. I had just added a PK to test this and have removed again. But both versions now work with or...
  3. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    I've just changed it to this (as per BOL's multirow trigger) IF UPDATE (dtPostcardSent) UPDATE tblsubcomments SET LPI_1 = (SELECT COUNT(bitworkingday) FROM tblDWPeriod WHERE dtsActivityDate BETWEEN dtSubCaseReceived AND dtPostcardSent AND bitworkingday = 1) WHERE subcaseid IN...
  4. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    Hi I actually had a calendar table tblDWPeriod courtesy of www.tek-tips.com/faqs.cfm?fid=4532) but wasn't sure how to implement that idea. I have changed the trigger code but still can't figure how to evaluate multirows, works with 1 record. Is it done with a subquery, if so, how...
  5. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    Sorry I neglected to mention I am using version 7 if you are referring to UDF's. I presume that means I cannot use a function, correct? ps. I had problems with the date datatypes going over as nvarchar. When I used datetime they seemed to be passed in the wrong format. It seems to work for...
  6. mapfax

    MULTIROW UPDATE TRIGGER WITH SP

    I am going round in circles with this, can someone point me in the right direction. I am not sure if I am approaching this the correct way. I have a table with dates, e.g. received, acknowledged, closed. I am trying to calculate the business days using a stored procedure which works for 1...
  7. mapfax

    Syntax error converting datetime

    Thanks James I checked and double checked my datatype assignments and now it is working.
  8. mapfax

    Syntax error converting datetime

    Have tried using CAST and CONVERT unsuccessfully, keep getting the same error 'syntax error converting datetime from a character string'. I am passing dates between a trigger to a stored procedure. The dates are being passed as nvarchar and are converted to a string char(20) in the input...
  9. mapfax

    ADP FORM - Add new record

    Hello, Can't seem to understand what is wrong here. Within an Access Project connecting SQL 7.0, I have a search form for customers and a main form for displaying the customer details. For existing customers there is no problem except for a new customer I can't get >DoCmd.OpenForm stDocName...
  10. mapfax

    Using Like % and form control to build SQL Stmt.

    Thanks for your help. I had tried this but this didn't work either. My SQL stmt is being pulled from a table which has no quotations. So when trying to reference the control it was just be read as part of the string. Anyway I explored the parameterized SP and found this successful. I had...
  11. mapfax

    see changes

    If it helps, I found a good article about creating Valid Time Tables for auditing purposes. www.accesshelp.net > survival guide. Mark.
  12. mapfax

    Using Like % and form control to build SQL Stmt.

    Can anyone help me with this? I am trying to work out the quotes, syntax etc to set a rowsource on a form using VBA. The SQL rowsource would look something like: SELECT colA, colB, colC FROM tbl WHERE colA Like '% & form.control & %' ORDER BY colA I have tried all sorts of combinations and...
  13. mapfax

    referencing adp/sql recordset clone in forms

    Thanks for the replies guys. You are right my syntax I posted was incorrect (mistyped), but I have narrowed my problem down. I thought the above line wasn't working but debuggings shows it does. My problem lies with referencing the fields collection for the recordset to determine the field...
  14. mapfax

    referencing adp/sql recordset clone in forms

    Hi, I am having real problems resolving this issue, can someone help? I have an Access project 2000 attached to SQL Server 7. I am trying to convert code written specifically for Access mdb. The code is designed to set an object to: Set rs = Forms(Form).Control(Subform).Form.RecordSetClone...
  15. mapfax

    Save a DTS Package dynamically

    I think I've found what I am looking for. I need to use the 'SaveToSQLServer' method on the DTS package object. For example: -- Set oPKG = DTSGlobalVariables.Parent oPKG.SaveToSQLServer "(local)", "","", DTSSQLStgFlag_UseTrustedConnection -- Although I am using...
  16. mapfax

    Save a DTS Package dynamically

    I've had problems setting and retaining global variables dynamically in DTS Package properties called from a SP. I now know my problem lies with 'saving the package' after the variables have been set. Does anyone know how I can achieve this dynamically on/before completion of the package...
  17. mapfax

    sp + activeX global variables

    Can someone tell me what is wrong here. I've created a DTS package with ActiveX scripts that update the DTS Package Properties global variables. Running the package manually works fine, but when run as a Stored Proc. using Query Analyser the ActiveX tasks still run but the global variables...
  18. mapfax

    DTS/TRANSACT - passing variables

    I have found another way to do this, using File System Object in ActiveX. Would still be interested to know if/how variables can be passed between T-SQL and VBScript.
  19. mapfax

    DTS/TRANSACT - passing variables

    Is is possible to transfer the results of a @variable in Transact SQL to a global variable in VBScript? I want to check if a file exists so I thought I would use 'xp_fileexist' before I run my ActiveX. Declare @result int exec xp_fileexist ‘filename’, @result output Thanks for any help.
  20. mapfax

    Empty Strings in import file for datetime

    Thanks for your help, I've added your advice to the code. However, despite what I had previously said I found checking <> &quot;&quot; worked! Confused I am...confused. Thanks anyway.

Part and Inventory Search

Back
Top