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

  • Users: sdempsey
  • Order by date
  1. sdempsey

    Dates - selecting depending on sequence

    Hi, Thanks for your reply. I will try to be a bit more clear. I have over 100 employees in a database and I would like the query return 100 employees with a First Date and Last Date. The first date we have for each employee tends to have little data attached to it and would only want to use...
  2. sdempsey

    Dates - selecting depending on sequence

    Hi, I am trying to compare dates. So for example I could have the following dates:- Person A 09/09/2006 09/10/2007 09/10/2007 09/10/2008 Person B or I could have the following 09/10/2007 09/10/2008 If ther are only 2 dates present for a person I would like 09/10/2007 to be taken as the...
  3. sdempsey

    Maximum date in the same row

    Hi all, I have 3 columns with dates in them for the same record and I would like to create a new column in the database that would hold the maximum date (of the 3 other dates). For example date 1 23/09/2005 date 2 25/09/2005 date 3 27/10/2005 New column - I would like 27/10/2005 for each row...
  4. sdempsey

    Automtatically saving an attachment

    Sorry about this. I posted this orginally on the Outlook forum and had no response. So thought this is perhaps a better forum. I am trying to automatically save an attachment after it enters the inbox.I thought I would create a rule doing the following:- Automatically run a script via a rule...
  5. sdempsey

    Running a Script - via rules

    Hi, I am having a problem running a script in Outlook. When I go to 'run script' there are no scripts there to run. I have tried to create a marco and put my code inside there however the procedure name is not there. how do you make your script name appear there? Thanks in advance.
  6. sdempsey

    Single Quotes - causing probelms

    I have the following line of SQL:- set @sqltxt = 'INSERT INTO ' + @lookup_table + '([Description],[Code],[Entered_By]) Values('''+@description+''','''+@code+''','''+@person+''')' The probelm is that the descriptions may contain single quotes and cause the compiler to complain that I have not...
  7. sdempsey

    Login to the server - CDO Mail

    I have established that I am already passing the username and password using the sendusername and sendpassword methods. However I am getting the following error:- The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for <email address> Any ideas
  8. sdempsey

    Login to the server - CDO Mail

    I use the following line of code to send an email:- exec sp_cdo_sendmail @rec, @sender @subject ,@body This has stopped working as the recipent has to be authenticated by the mail server before it can send the email out. Do you know if this is possible to adapt the sp_cdo_sendmail procedure...
  9. sdempsey

    Passing Parameter to Reports - Failing

    I have removed my parameter fields and now only have one parameter on the main report. The code now works in the above form and a report is produced from the DTS package. Thanks for you help. It stopped me going mad.
  10. sdempsey

    Passing Parameter to Reports - Failing

    Hi, I was just wondering if anyone can help me. i cant seem to find any info out there. i have created a report with one subreport. The 1st page of the report the parameter values are displayed however on the second (sub report) they are not. Indicating that the parameter values is not being...
  11. sdempsey

    Passing Parameter to Reports - Failing

    I have successfully got a report to work without any subreports. The parameter value is passed and data is successfully added to the report. My question now is how will I get the whole report to work. I have 8 subreports - all refer to the same 2 database tables and some also refer to...
  12. sdempsey

    Passing Parameter to Reports - Failing

    Hi, I have been looking around the internet and cant seem to find any help. If anyone has an idea -- I would be very grateful. report.ParameterFields.Item(1).AddCurrentValue (currentpractice) There is nothing being added to the Parameter fields. Am I perhaps missing a dll? Are these...
  13. sdempsey

    Passing Parameter to Reports - Failing

    I am using Crystal Reports 10 and SQL Server 2000. I have added the following code to a DTS package and is contained within an ActiveX script. The code seems to work and a report is produced however it does not contain any database values from the tables. The report has a number of different...
  14. sdempsey

    Min (pulling out only one record)

    Hi, I have had a good look through the forum and the below seems to be the solution:- Select FR.no, FR.date, FR.pat_id, FR.run_date, FR.entry_number From #first_report as FR Where run_date = (Select MIN(run_date) FROM #first_report as FR2 Where FR2.pat_id = FR.pat_id and...
  15. sdempsey

    Min (pulling out only one record)

    The above situation may happen with a number of different rows. The above code would only pull out 1 row from the whole table? So a pat_id may have 3 records or may just have 1. I would like 1 record returned for each pat .
  16. sdempsey

    Min (pulling out only one record)

    I have the following fields in my database * Entry Number (unique for every record) * Company ID * Pat ID * Date Seen * Run Date All fields can be the same i.e. Company ID, Pat ID, Date Seen and Run Date may be the only one that varies.Entry number will be different every time. I would like...
  17. sdempsey

    Registering Dll

    Hi all, I am a bit confused over the dll that are needed to export to pdf/word. I currently have Version 10 of Crystal Reports installed. Previously we had version 8.5 and a Visual Basic application (module in Access) was written that exported word documents. Version 8.5 was removed from the...
  18. sdempsey

    Error with server permissions

    Hello, I hope this is the best forum for this question. I have the following line in my Active X script:- Conn.Open "Provider=SQLOLEDB.1;Initial Catalog=Backup_Database;App=Crystal Export;Data Source=(local)", "dummy", "dummy" Dummy has standard login and is a dbo user within the...
  19. sdempsey

    Insert into table using @varaibles

    Thanks for the response. All the lookup tables do contain the same fields Description and Code. The code above complies however sqltxt is blank and nothing happens when I run it.
  20. sdempsey

    Insert into table using @varaibles

    I am wondering if someone could help me with the following INSERT statement. declare @sqltxt as varchar(200) select @sqltxt = 'INSERT INTO'+ @lookup_table+'('+[Description]+','+[Code]+')values('+@description+','+@code+')' print @sqltxtExec sp_executesql @sqltxt Am I right in the fact that...

Part and Inventory Search

Back
Top