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

    Copy a 1-dimension array to part of a 2-dimension array?

    THE QUESTION: Given a 1-dimensional array like: RowIdentifiers(1 To 10) As String And multiple two-dimension arrays, each in the form: ArrayA(1 To 50000, 1 To 100) As String Is there a short (1-line?) way to copy the contents of RowIdentifiers into ArrayA(1, 1-10). Something like: ArrayA(1...
  2. VBAjedi

    Subform "frozen" after enabling user-level security?

    I built out an Access 2003 database with a variety of forms/subforms, and then today I turned on user-level security. Now one of the subforms is "frozen" - it won't let me add new records or edit existing ones. I CAN go into the underlying table and edit values there directly. As far as I...
  3. VBAjedi

    Use a Union query to link two tables via a third intermediate table?

    I have three tables - I'll call them TableA, TableB, and Corrections (the actual names and data would take too long to explain). TableA contains handkeyed data, including a "TableBValue1" field which is a foreign key used to link to TableB. The problem is that the data entry folks consistently...
  4. VBAjedi

    Primary Key issue affecting Where clause?

    The "Where" segment of the following query is not working. Specifically, while it does return rows that match, the result set also includes rows with totally different values in them ("2005", "2007", etc): SELECT SFMSPUSR_INDEX_NO.APPN_YEAR, SFMSPUSR_INDEX_NO.INDEX_NO...
  5. VBAjedi

    Best method for moving 100k records from Excel into new Access table?

    Hey all, I've written some VBA in Excel that will generate about 100,000 rows of data, and I need these to end up in a new table in an existing Access database. Performance/speed is obviously a concern here. Conceptually, would it be best to load the rows into an ADO recordset as I'm looping...
  6. VBAjedi

    Can I use "Sheets(Array(" with worksheet variables instead of names?

    I've used "Sheets(Array(" in the past to manipulate multiple sheets at once. I.e.: Sheets(Array("Sheet1", "Sheet2").Select I'd like to be able to do something similar with worksheet variables: Dim Sh3110 As Worksheet Set Sh3110 = "Worksheet Name" ... Sheets(Array(Sh3110, Sh3160, Sh3180...
  7. VBAjedi

    Conceptual Q: Best way to track time elapsed for ticket statuses

    Ok, I'm building a tech support issue tracker in Access 2003. Each ticket can be assigned a variety of statuses like "In Queue", "In Process", "Waiting For Customer Response", and "Completed". A ticket may get assigned the same status more than once (it might, for instance, be bounced back and...
  8. VBAjedi

    Aggregate functions and Subqueries?

    BACKGROUND: I'm trying to learn how to use aggregate functions like COUNT and SUM in subqueries, and still running into issues. My current challenge: SETUP: I have table "PositionPlacements" containing fields "ID" (an AutoIncrement index), "PositionNumber" (alphanumeric)...
  9. VBAjedi

    Avoid charting text values generated by formula?

    In Excel 2003: I have a line chart that uses 12 cells containing formulas as its data source. Each formula checks to see if there's data in a given column, then returns a SUBTOTAL() if so and a string ("No data yet") if not. (The columns the formulas look at contain actual expenses for a given...
  10. VBAjedi

    Copy a form from one protected database to another

    This should be stupidly easy, but it isn't working. I want to copy a form and a query from one Access 2003 database to another. Each database has User-level security applied, and they use separate .mdw workgroup files. With both databases open (logged in to each as an admin/full permissions...
  11. VBAjedi

    .SpecialCells(xlCellTypeFormulas) incorrectly returning nothing?

    I have a workbook where every sheet contains a bunch of formulas. For some reason, the "LinkCells" range object in the following code frag stays at nothing for SOME of the sheets and not for others (so it fails the "If Not LinkCells Is Nothing" test on those sheets when it shouldn't). It seems...
  12. VBAjedi

    Does this subquery rerun for every row?

    I'm writing a query to compare two copies of a table for changes (each copy contains about 10,000 records). The unique key that I'm matching on is a combination of two fields. So... I wrote a query for each table that simply selects all fields from the table and adds a concatenated field to...
  13. VBAjedi

    Does this subquery rerun for every row?

    I'm writing a query to compare two copies of a table for changes (each copy contains about 10,000 records). The unique key that I'm matching on is a combination of two fields. So... I wrote a query for each table that simply selects all fields from the table and adds a concatenated field to...
  14. VBAjedi

    How do I structure my query in this situation?

    I have an "Employees" table with a "SeatingZone" field where we record which of thousands of cubicle zones they sit in. Regular "snapshot" copies of this table are made for backup and historical purposes. I need to write a query which will compare the "Employees" table to one of it's backup...
  15. VBAjedi

    'Paste Picture Link' equivalent for form image?

    Is it possible to display a live/linked view of a range of cells with an image control on an Excel form? When you copy a range on a sheet, then use "Paste Picture Link" to create an image control where .Formula is set to that range, you end up with a live "window" into those cell's contents on...
  16. VBAjedi

    Programmatically finding the header row on a worksheet

    I'm sketching out a cool generic tool (probably destined to be an Add-In) that will create a report using data from other sheets in the current workbook. More detail on that in a minute, but first right to my question: For a given worksheet, how can I reliably identify the block of cells...
  17. VBAjedi

    Double-click event for the PivotChart view of a form?

    Is there a double-click event for the PivotChart view of a form? I want to open a detail report when the user double-clicks anywhere on the PivotChart. I tried sticking DoCmd.OpenReport stDocName, acPreview into the double-click event for the form, but that doesn't appear to fire when it's in...
  18. VBAjedi

    Possible to Pivot Chart hidden datasheet columns?

    Hey everyone, Question: Am I correct in observing that datasheet columns that are hidden don't show up in that form's PivotChart Field list? If so, is there a workaround that will let me use a query field in a PivotChart but have that field hidden in the corresponding datasheet view...
  19. VBAjedi

    Custom workbook consolidation (conceptual question)

    Ok I'm in the classic position of being asked to provide some quick-fixes for an Excel Hell not of my making. :^) Here's the situation: VBA is being used to chop a dataset into several hundred pieces which are each inserted into a separate workbook (all with an identical layout, number of rows...
  20. VBAjedi

    Way to spot constants in cell formulas?

    I'm writing a quick 'n dirty workbook analyzer that flags potential design weaknesses (beyond what the built-in Formula Auditing tools provide). One of the things I want to do is loop through the formulas on a worksheet (I'm just using .SpecialCells(xlCellTypeFormulas)) to look for formulas...

Part and Inventory Search

Back
Top