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

    How to search for a string within a string

    There is a string I need to parse to create several columns. I am using the following statement to create the employeeID column and the Import Date column: select Substring(rowdata, 1, 9) as 'EmployeeID', substring (rowdata, 11, 8) as 'Import Date' from livereqlog Example of string to be...
  2. iwm

    assistance identifying duplicate data

    I have a table that contains funding sources. It has recently been brought to my attention that there are duplicate entries in the funding source table. EXAMPLE fundName: AAA, fundNumber: 123-456-7890, departmentID: 1 fundName: ZZZ, fundNumber: 123-456-7890, departmentID: 746 As you can...
  3. iwm

    Exporting data from Excel to a SQL table

    I need assistance exporting data from an Excel Spreadsheet into an existing SQL table (table A). I used the Import Export Wizard to export the data from Excel into SQL, however that created an additional table (table B). Is it possible to export data from Excel into an existing table using the...
  4. iwm

    How do you use scope_identity()?

    I need to insert a row into table "A". I was instructed to Select scope_identity() to create the ID for the new row in table "A". So I ran the following statement: SELECT SCOPE_IDENTITY() from A This statement returned a NULL value for each row. How do you use scope_identity to create an...
  5. iwm

    sp_lock question

    When I execute the following statement: sp_lock The mode colum returns an "IX" and the Resource column is empty. Should I be concerned? Is this indicative of a blocked process? Thanks in advance for your help!
  6. iwm

    How to suppress a date prior to Dec 31, 1899

    The client does not want to see dates prior to Dec. 31, 1899. I used the Format Editor to suppress the date prior to Dec. 31, 1899: {Reference.beginDate}< 'Dec 31, 1899' This formula works except when the date is April 01, 2011. It suppress the date when the date is April 01, 2011. Why does...
  7. iwm

    How to suppress a date prior to Dec. 31, 1899

    The client does not want to see dates prior to Dec. 31, 1899. I used the Format Editor to suppress the date prior to Dec. 31, 1899: {Reference.beginDate}< 'Dec 31, 1899' This formula works except when the date is April 01, 2011. It suppress the date when the date is April 01, 2011. Why does...
  8. iwm

    Page Header plus Page Footer is too large for the page

    Client "A" is receiving the following crystal report viewer message when she attempts to print a report created in crystal reports 9, "THE PAGE HEADER PLUS PAGE FOOTER IS TOO LARGE FOR THE PAGE". Multiple clients use this report, yet only client "A" receives this message. This leads me to...
  9. iwm

    Extracting data from a string

    I created this report using Crystal Reports 9 several years ago. The description field is a string containing the invoice date and the item description. The client instructions for formatting from the description field were as follows: 1. (First character) Open parenthesis 2. Followed by...
  10. iwm

    How to extract data from a string

    I created this report using Crystal Reports 9 several years ago. The description field is a string containing the invoice date and the item description. The client instructions for formatting from the description field were as follows: 1. (First character) Open parenthesis 2. Followed by...
  11. iwm

    How do I conditionally change color of data returned from a formula

    My more experienced predecessor has created a formula using case logic. Unfortunately our client would like to change the form so that whenever the formula returns the words "data blank" they appear red while the rest of the formula results remain black. Below is a segment of that formula...
  12. iwm

    amount total on a subreport with multiple detail lines

    I am working with four sub reports, pages 1, 2, 3 & 4 respectively. Each sub report is will contain 18 detail lines. The first sub report will contain detail lines 1-18 and the second will contain 19-36, etc. The sub reports are in sequential report footers of the main report. Each sub report...
  13. iwm

    Error converting data type varchar to numeric

    The following subquerry generates a message stating: "Server: Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric." (cast(refNo as nvarchar(200))+' '+cast(orgNo as nvarchar(200))+' '+ (cast((select top 1 modifier from PayrollTable join BudgetTable on...
  14. iwm

    converting data type

    I want to get 75.000 but I keep getting 0.75000. (replace(modifier,right(table.Numberfield,4),'000')) In an effort to get my desired result I multiplied it by 100. (replace(modifier,right(table.Numberfield,4),'000'))*100 Multiplying it by 100 generates the following message: Server: Msg...
  15. iwm

    Counting detail lines on sub report

    I am working with four sub reports, pages 1, 2, 3 & 4 respectively. Each sub report is will contain 18 detail lines. The first subreport will contain detail lines 1-18 and the second will contain 19-36, etc. The subreports are in sequential report footers of the main report. The subreports...
  16. iwm

    Limiting the amount of data returned per page

    I am trying to limit the amount of data returned per page. I am working with 4.5W inches x 9H inches section which I have placed in the Page Header of my report. I am using THE SELECTION EXPERT - NEW PAGE BEFORE in order to accomplish my task. This is the formula I am using THE SELECTION...
  17. iwm

    Dividing a string

    I am trying to divide the following string: "Departure|Arrival|Time|Expenses" This string will be used to populate the details section of a report. I need to divide the string at the pipe symbols(|) producing the following four individual fields: Departure Arrival Time Expenses Do you...
  18. iwm

    eliminating duplicate rows

    The fields I am working with are ACCOUNT#, CODE, AMOUNT. I need to sum the AMOUNT field when the ACCOUNT#/CODE are the same, listing the ACCOUNT# and CODE only once. I am currently using the following code: select CodeMaster.code, BCM.Account, Fund.fundID as procureID...
  19. iwm

    Detail lines rolling over to the next page

    My report can accommodate 5 detail lines per page. The 6th detail line should print on the next page. Under normal circumstances I would do this by applying the following logic in the Section Expert>Common>New Page After: Whileprintingrecords; (RecordNumber mod 5) = 0 The fields I am...
  20. iwm

    Limiting the number of detail lines returns

    Is there any way to limit the details returned based on the dimensions of the detail area. Here is my dilemma: This form has room for a maximum of 7 detail lines per page. So, I entered (RecordNumber mod 8) = 0 in New Page Before from the Section Expert. However, the first detail record...

Part and Inventory Search

Back
Top