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 SkipVought 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: *

  1. 03Explorer

    Refreshing a linked table (housed on MS SQL Server) now breaks

    *thinking* wonder why this thread is not getting any attention.
  2. 03Explorer

    Refreshing a linked table (housed on MS SQL Server) now breaks

    We had a former developer who built most of the forms in our MS Access database. When we first built the database in Access office 365 we did refreshing of tables from our dev version before publishing to production. All was great back then, before the revamping of the managing of linked...
  3. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    What is the best way to find out if queries or tables are used throughout the Access system? Either by query to query or VBA SQL code or by Objects? Is there any good solution to cleaning house on them without the change the name and let time reveal if it is used by way of broken code. This...
  4. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    Okay Strongm, You won this time... :) I did end up using a Passthrough query. I am not a fan of having a bunch of queries sitting in a list and no way 'easy' to quantify if they are used or not. That is the reason I chose to go with coding vs a TON of randomly plotted queries. Some need to...
  5. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    How can I use ADO with ODBC? From what I am reading I have to use OLE DB. That forces me to use static server values vs using ODBC which our IT manages and we use when moving SQL servers.
  6. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    Strongm - I am willing to work with code to avoid having Passthrough queries hanging out. My previous coding associate was all about having queries and passthrough queries (which you helped us GREATLY to understand). I like to keep the queries section as clutter free as possible and keep the...
  7. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    I am a lightly seasoned VBA programmer but this is a time where I ponder on why I get a compiling error with this command with Error: "User-defined type not defined" line in blue [highlight #729FCF]Dim cn As New ADODB.Connection[/highlight] Dim cmd As New ADODB.Command Dim rs As...
  8. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    Andy, you just got my head spinning... LOL I took the question and solutions and put them into code I recognize (now you reminded me I have 3 parameters to send into the SPROC). I need to adjust this sample code to incorporate what you just shared (parameters to SPROC). My platform is MS SQL...
  9. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    But that "SEL_Suppliers_Summary" is only used in the question, but not again in the resolutions. = Why not in the resolution suggestions below the question.
  10. 03Explorer

    Run StoredProc from Access to populate local holding table pt 2

    I found code that describes what I want to do... Execute a SPROC (MS SQL Server) and directly populates a local MS Access Table. I am just uncertain in their code what the actual SPROC name is. I am not a member of that forum and rely on this site for my primary resource. Thanks, Site: Link
  11. 03Explorer

    HR Recursive List using CTE but includes 'self' as level 0

    Correct, I am looking to remove 'Managing Director' for only one Associate running the code, everyone else receives the full list. Rob
  12. 03Explorer

    HR Recursive List using CTE but includes 'self' as level 0

    Follow up question for this script. If all users who reach this code, they get all associates, but if user with ID 'xxxxxxxxx' goes through this code they are restricted by not seeing Managing Directors (MDs). Code I have so far: DECLARE @AssociateID = 'xxxxxxxxx' ;WITH...
  13. 03Explorer

    HR Recursive List using CTE but includes 'self' as level 0

    @Mark, Brilliant! I was trying to make the union in the front (top of the sql code) but placing at the bottom makes complete sense now. Also I tend to use variables and immediately smiled when I noticed you went there. THANK YOU!! Rob
  14. 03Explorer

    HR Recursive List using CTE but includes 'self' as level 0

    I am using a single table UniqueID LastName FirstName ManagerID Title ======== ======== ========= ========= ===== 1 Smith Frank VP_Sales [highlight #FCE94F]2 Moore Bethany 1...
  15. 03Explorer

    Fill array by looping data to find last person

    I believe I am very close to getting the results I have been seeking. I've been digging and it appears SQL is going to be the method I find to work best. It's SQL I am passing to the SQL server (Back end) so I am able to leverage more powerful options ie With or CTE (Common Table Expression)...
  16. 03Explorer

    Fill array by looping data to find last person

    @Skip Thanks, you are right... there could be any number of levels and a recursive process is going to be the ticket. Hoping that someone has a direction advise for me... VBA or SQL (TSQL) Thanks, Rob
  17. 03Explorer

    Fill array by looping data to find last person

    @Skip The table provided is by our HR personnel coordinator who receives a data dump from Finance. HR person takes the RAW file and adjusts it to meet business details to then hand it over to my group to import into the system. Am I wrong in thinking maybe this should be generated in TSQL vs...
  18. 03Explorer

    Fill array by looping data to find last person

    @Andy The reason if (2) signs in and can't see Williams, Fredrick, Bendricks, Black, Twitty, Getty, and Silver is as a manager Beth is only able to see her data and anyone who is under her, not even her peers data (or the peer's subordinates). @Skip I need to soak up the flip you threw at me...
  19. 03Explorer

    Fill array by looping data to find last person

    I have an ADP data dump that shows all associates in a company. With each associate there are two data points I am focusing on, their UniqueID (or AutoID ADP gives) and a ManagerID, which is the UniqueID of the associate that manages the associate in the row. If I am a high level manager, my...
  20. 03Explorer

    sproc While Exist loop through recordset

    Wow, thank you bborissov! I like your method of incrementing the aID!

Part and Inventory Search

Back
Top