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!

Recent content by graabein

  1. graabein

    Stop trimming text fields

    Problem solved (not really). When I export to Excel the whitespaces appear so it was just the HTML rendering that fooled me. If somebody finds a solution to this I'm still interested in knowing it. There are times you want to control screen rendering also. [elephant2] graabein
  2. graabein

    Stop trimming text fields

    Incredible. I even tried selecting everything into a single text column from the database but SSRS still trimmed multiple whitespaces within the table cell! Somebody shoot me! LOL. [elephant2] graabein
  3. graabein

    Stop trimming text fields

    Hi, I have to create a text file that outputs data in certain chuncks like this: Name, 10 chars [1-10] Number, 2 chars [11-12] Code1, 3 chars [13-15] Code2, 3 chars [16-18] I put all the fields from the dataset next to eachother in a single table cell and the idea is to let the user export to...
  4. graabein

    Help with debugging database bug

    Not yet. Been busy working on another project. I've bookmarked this page for later reference. [elephant2] graabein
  5. graabein

    Count distinct values on sevaral fields

    LOL nice coincidence! Thanks man. [elephant2] graabein
  6. graabein

    Count distinct values on sevaral fields

    I think I did it! Check this out: select Work.Code, count(*) from ( select Code1 as Code from table1 union all select Code2 as Code from table1 ) as Work where Work.Code is not null group by Work.Code What do you think? [elephant2] graabein
  7. graabein

    Count distinct values on sevaral fields

    Hi, I have a sort of stupid table structure on the project I inherited. It's a list of what work was performed that uses codes like this: CustomerID | Date | Code1 | Code2 | Code3 | Code4 I want to know all work that was performed for a certain period and thus need to count the distinct codes...
  8. graabein

    Help with debugging database bug

    Thanks Joe, I'll update my code with that. Another thing, can I get the line number with Erl? error_handler: Dim errNum As Long Dim errDesc As String Dim lineNum As Long errNum = Err.Number errDesc = Err.Description lineNum = Erl [elephant2] graabein
  9. graabein

    Help with debugging database bug

    The bug occurs in production and I can't recreate it on my development environment. [elephant2] graabein
  10. graabein

    Test if a list of dates is sorted

    Well I'm trying to write some tests to run on the code (not written yet). They're not registrations of the same thing, they're a series of events connected with a bigger operation so we need to know what happened when for later on. Some of these events have to be in the proper order. Thanks for...
  11. graabein

    Help with debugging database bug

    Thanks, I have mztools installed but wasn't aware of Erl! [elephant2] graabein
  12. graabein

    Help with debugging database bug

    Hi, I'm looking for some advice on cornering an annoying bug I cannot recreate! I'll just paste the code here: Public Sub CreateView( _ lv As ListView, _ lvTemp As ListView, _ dtFromDate As Date, _ dtToDate As Date, _ Optional sFilter As String = "" _ ) Dim rs As New...
  13. graabein

    Test if a list of dates is sorted

    The user registers a list of dates. I want to see if they are in order. [elephant2] graabein
  14. graabein

    Test if a list of dates is sorted

    Here is what I've got so far but it's probably not the best way to go about this. Suggestions are welcome! private bool IsSorted(ObservableCollection<CustomEntity> coll) { List<DateTime> unsorted = (from n in coll where n.EventDateTime > DateTime.MinValue select...
  15. graabein

    Test if a list of dates is sorted

    Hi, I'm pretty new to C# .Net 3.5 so go easy on me... I want to test if a list of dates is sorted. I use LINQ to extract the DateTime field from a ObservableCollection<T> with either ToArray or ToList. I do this twice, with and without orderby clause. The (simple?) problem is how do I compare...

Part and Inventory Search

Back
Top