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 dencom 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: yan19454
  • Content: Threads
  • Order by date
  1. yan19454

    find

    I want to have button when end user click. The Find From the menu bar pop up. Thx.
  2. yan19454

    export the content of the attached msg out

    I get a forwarded e-mail that comes as an attached msg file. It is around 1000 message. I need to open the attached msg file and export to excel file. I am oK with export the regular outlook item. but I do not know how to convert the attached msg as normal email message file. I am ok to dump...
  3. yan19454

    record did not update the table

    If LabOutConnection.State = ConnectionState.Closed Then LabOutConnection.Open() End If Dim sqlStr As String = "select * from NewImportLabChar where Mid([NewImportLabChar]![LabResultString],1,1)='>' or Mid([NewImportLabChar]![LabResultString],1,1)='<' " Dim...
  4. yan19454

    delete duplicate column in the excel from MS ACCESS

    I have excel file which has two columns with the same name. I can't import the file into MS Access. Will you please give me the code to delete one of duplicated column first in MS VBA code so that I can import. Thx.
  5. yan19454

    insert short date to table

    I have one table module log which have trigger association with that. When I insert into [module log]([Employee Name], [DOB], [Module Name],[Access Module Time], [manager login ID]) SELECT [FULL NAME], DOB ,'Back Injury Competency',getdate(), 'abcl' FROM OcchEmp WHERE (Unit...
  6. yan19454

    join and count

    I have three tables OcchEmp,tblInternalEduModule, tblCurrentWinTrainingLog I want to get the total employee count in OcchEmp group by unit as Tcount I need to the count employee in tblCurrentWinTrainingLog as count group by module name tblInternalEduModule which category is WIN and group...
  7. yan19454

    record count of the query

    Any way to do get the record count of the following query. SELECT distinct h.[Full Name],h.DOB FROM annual_edu_2006.dbo.HREMP h INNER JOIN(SELECT [Employee Name], DOB FROM [Module Log] UNION ALL...
  8. yan19454

    union sum

    module log Name DOB [Access Module Time] [Module Name] ABC 1/12/02 1/12/07 Help ABC 1/12/02 1/12/07 Help2 ACC 1/12/62 11/12/07 Help2 ACC 1/12/62 12/12/07 Help...
  9. yan19454

    select query help

    EmplID Status License Verify Expired 11112 OR RN Y 7/17/07 11113 ER DR N 11114 PP DR Y 1/1/07 11115 OO DR 7/1/07 If the end user select 11112, it will return the record 11112 OR RN Y 7/17/07 If the...
  10. yan19454

    Incorrect syntax near '.' in sp

    SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO ALTER PROCEDURE dbo.DueListWithPreviousTraining_Temp @quiz VARCHAR( 25 ), @fromdate datetime = NULL, @todate datetime = NULL, @unit nchar(5) = NULL, @cc nvarchar(4000) = NULL, @debug...
  11. yan19454

    how to improve this query

    I tried to get the recentest training data for employee SELECT distinct EmplNO , QuizName, CTDate FROM tblPreviousWinTrainingLog b WHERE CTDate IN ( SELECT MAX(CTDate) FROM tblPreviousWinTrainingLog a WHERE b.EmplNO = a.EmplNO group by b.QuizName ) Here is my table defination: if exists...
  12. yan19454

    how to improve my query.

    /*. according the due date end user select and ALTER temp table find the nomatch table in the occh and return the table if the end user select the data, then it will show just the empl take the test during the period. otherise including all the empl not take the test. 1. test a.with previous...
  13. yan19454

    string concatenation

    according to this : http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true I created my function. create FUNCTION dbo.combine_cptcode (@pid As char(8)) RETURNS varchar(1000) AS BEGIN DECLARE @cptcode AS varchar(1000) SET @cptcode = '' SELECT...
  14. yan19454

    Concatenate content into one column

    I have the following info. I need to update table OutPatientMedStat from those records PNO CPTCode 40000028 80061 40000028 83735 40000028 84100 40000028 84436 40000028 84443 40000028 84479 40000028 84480 40000028 85025 40000028 86617 40000028 86618 40000027 86617 40000027 86615...
  15. yan19454

    print out the stored procedure with parameter

    SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO ALTER PROCEDURE [dbo].[get_Quiz_log_by_emp_Avg] @DateFrom datetime, @DateTo_in datetime, @strName varchar(26), @dtDOB datetime, @debug bit =0 AS declare @DateTo datetime select @DateTo = @DateTo_in+1 --DECLARE @sql...
  16. yan19454

    trigger did not not trigger as expected

    whenever thd quiz log has quiz enter which the quiz name in table tblInternalEduModule category is Win add to the tblCurrentWinTrainingLog the trigger did not trigger as expected ? Thx. create trigger CurrentWinInsert on [Quiz Log] for insert as --insert on the win quiz only is win and...
  17. yan19454

    how to import such text file to sql server

    PATIENTID" "PATIENTIDNAME" "BILLINGHC" "BILLINGHCNAME" "CASES" "BILLINGHCPCS" "DISCHARGEDATE" "PRIMARYAPCCODE" "12048583" "aCCcG ,JEAN " " " "NO BILL HCPCS " 1 0 "06/30/2006 " " " "40000002" "aCE ,eiii " " " "NO BILL HCPCS " 1 0 "07/28/2005 " " " "40000069" "EFTOFF ,Rboert " "83615" "LACTATE...
  18. yan19454

    update the largest amount payor

    I have one table which the payment from multiple insurance company and another table contain the patient information. I want to update the patient information with the insurance company information who paid the most bill. table one: PID Payor 111 222 333 I need to update the table one with...
  19. yan19454

    Email in the DTS script

    I set up the DTS in my server which install smtp mail server. DTS will try to import the text . Before I import , I want to check whether the file is update otherwise I will email operator to update. if update it, then import. On the workflow , i added this active script. The mail part is not...
  20. yan19454

    combine query together

    I have two queries I want to combine together to get the JobCCNO, TotolEmpCount, TotalCompleteCount, IncompletedCount For IncompletedCount should be TotolEmpCount-TotalCompleteCount The data should be extract from tables OcchEmp,The data should be extract from table...

Part and Inventory Search

Back
Top