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

    Excel Move Original and Duplicate Rows to New Sheet

    First, let me preface this by saying that I haven't done any VBA coding in more than a decade, so I'm pretty much flying blind (or working from some very faint memories). I've been searching around for ideas on this, but most of what I've found is either close (moves the duplicates but not the...
  2. Moebius01

    Excel Formula - Delete after last occurrence of delimiter

    Hoping this is the right forum for this question. I'm trying to come up with a formula to delete all characters after the last occurrence of a delimiter, but I keep getting stuck. I have something to work with text after a delimiter, but ran into a problem when the string contained in more...
  3. Moebius01

    Using Acrobat PDFMaker Add in from VBA

    First off, for the record, I am not a vba coder. I've taught myself enough over the years to be dangerous, but since I only need to script things once in a blue moon, have never had any official instruction. That said, I'm trying to automate saving an Excel file as PDF using the Acrobat...
  4. Moebius01

    Separate Columns into Rows

    Ok, first off I'm starting this in the Access forum as I'd just assume be able to do it locally rather than having to go through our DBA to create something on the SQL Server to work with. However, given the nature of what I'm trying to achieve (which I'm not even sure is remotely possible at...
  5. Moebius01

    Buried in a sea of Casts

    Ok, this is mostly just a self educational project, but I'm trying to see if this could be streamlined. The field this is reporting on contains 3 statuses, 0,1, and 2 for not started, incomplete, and complete respectively. The idea is to output a count/total % style number for each. So the...
  6. Moebius01

    Find Duplicates in one field, but not in two.

    This is a bit odd to explain, but I'm looking to find records that have a one field that's duplicated, while a second field is different. It's proprietary data, so I can't post the exact thing, but here's an example: EmpID EmpName IncidentID 111 Bob Smith 123 111 Bob Smith...
  7. Moebius01

    Selecting Grouped Rows With Max Value

    Ok, considering the approaching holiday and severe braincramping as a side effect, I'm stuck on what I thought would be a very simple query. The table stores EmployeeID, EvalID, CompletionDate. I need to pull the record for each employee's latest completion date. i.e. if each employee has 4...
  8. Moebius01

    Recursive Query - Find Grandparent

    Ok, first off, hopefully this will be at least understandable - medication has my head swimming right now. Second, if this is really simple, it's the drugs making me miss it. :) Basically, I have a table (SQL 2000, not 2005) with a parent/child structure for three levels. Something like...
  9. Moebius01

    Prevent overlap when using Can Grow option

    Ok, first off, I've not really worked much with Crystal in many many moons. However, my new job does require maintaining and updating some Crystal 9 designed reports. The one I'm working on at present places a graph below a can grow text box. In order to keep them closely aligned, the report...
  10. Moebius01

    Suddenly all new procs create as System instead of User

    I'm trying to track something down, but I'm not sure where to look. Basically, starting yesterday, any time I create a stored proc on any db on the server, it gets created as System instead of User. I've tried creating from QA and EM with the same result. Additionally, while QA will accept...
  11. Moebius01

    Find duplicates assuming padded 0s

    I have what should be a simple query to do, but for the life of me I'm stuck. Dealing with a data import from a client who converted their ID String from numeric to 6 digit numeric. (ie... record with id of 3841 is now 003841) I won't go into all the bs details of why we can't just redo the...
  12. Moebius01

    Simple (I think) self join help needed

    Ok, it may be just a bad day and my brain is offline, but this seems like it should be pretty simple, yet I'm stuck. Table contains EmployeeID and SupervisorID. I need a query to list each EmployeeID, then whether or not they also appear as a Supervisor. I've tried a dozen different ways to...
  13. Moebius01

    Dynamic In Claus with Case

    Been digging around, but can't get this to work, and I'm not sure if it's possible this way. I'm trying to add a Case to the IN Clause. The problem is in this case it needs to be a list. I may be missing something obvious here, but there's the basic idea: DECLARE @Var INT SET @Var = 1...
  14. Moebius01

    Syntax Error In If Statement?

    Ok, first off I've never had any asp/vbscript training, just go on what I picked up by hand, so if this is standard, it's just one I never encountered before. Will having a comment in the middle of an IF statement (before the THEN) cause an error? This was the original code. If (args.Step =...
  15. Moebius01

    List DBs current user can access

    Tried searching on this, but didn't get any hits. Is there a way to list the databases that the current user has access to? Back story. I was asked to create a script that runs some logic aginst all databases (used Name from Master.sysdatabases). However, they didn't really mean all...
  16. Moebius01

    Force Missing Items In List

    For some reason, I have what should be a simple query giving me some serious fits. Using example table #Steps as follows Item Step Review 1 Review 2 Review 4 YearEnd 1 YearEnd 3 YearEnd 4 Is there a way I could pull a list of each Item, Each Step, and a count of how...
  17. Moebius01

    Baffling Problem With Temp Table

    Ok, this one is going to be hard to describe properly, and as it's some client confidential stuff in the query I can't just post it direct. So here's the summary. I have a query that is used by an ASP page to provide a report for a client. Due to some filtering they're asking for, I needed to...
  18. Moebius01

    Use Joined Field In IN Cluase?

    I'm thinking there's no easy way around this, but figured it's worth a try. I have a table PerfPeriods with two fields, EmpID INT and Periods varchar. Periods contains a comma seperated list. EmpID Periods 1 1,2 2 2,4 Is there any way to join this to another...
  19. Moebius01

    Sanity Check

    Ok, given the long day, I may be missing something obvious here, but a co-worker just showed me a table where a column, defined as smallint had a row with a value that was text, specifically a sentence. Is there any way whatsoever this would be possible? I thought that even if the field was...
  20. Moebius01

    Query Tuning Help

    Ok, the non-sql expert in me just inherited a new "problem query" that was causing major load issues and taking quite a while to run. Basically it's a logon usage by interval report, showing the number of employees that logged on in each interval (currently 1 day). When run for small ranges...

Part and Inventory Search

Back
Top