+ Reply to Thread
Results 1 to 5 of 5

Unable to see the queries that are used in the access vba code macro

  1. #1
    Registered User
    Join Date
    12-08-2016
    Location
    mumbai
    MS-Off Ver
    2013
    Posts
    2

    Unable to see the queries that are used in the access vba code macro

    I m having a access macro which fetches data from tab files and save those in a .mdb files. There are some query written in the background which i am not able to see. Also those queries are not hidden in the Acess.
    Following is the snippet of a code:

    Please Login or Register  to view this content.
    Here there might be some query defined in qryMakeSumTableNoDeptLevelStatD which i am unable to see.
    Will u please let me know the possible solution?
    Last edited by alansidman; 12-09-2016 at 01:04 PM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Unable to see the queries that are used in the access vba code macro

    Go edit the query and check the input tables or query definitions.

    Other than that, how you expect anyone to answer this based on the information given is beyond me.

  3. #3
    Registered User
    Join Date
    12-08-2016
    Location
    mumbai
    MS-Off Ver
    2013
    Posts
    2

    Re: Unable to see the queries that are used in the access vba code macro

    Being more specific...!!

    I am doing Reverse Engineering of an application where the data is fetched from the Tab files and stored in database(i.e. mdb files). I have a query(qryMakeSumTableNoDeptLevelStatD) which is stored in a variable(stDocName) in a macro as:
    Please Login or Register  to view this content.
    But have searched the whole macro and unable to find the query statement which is defined in "qryMakeSumTableNoDeptLevelStatD". Also there are no queries defined in Access Database. I have also checked under Navigation Options of Access and found that the query is not hidden as well.

    Please let me know the possible solutions.
    Last edited by alansidman; 12-09-2016 at 01:03 PM.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Unable to see the queries that are used in the access vba code macro

    It's possible to create a query definition in code, execute it and delete it afterwards, leaving no trace except in the list of deleted objects (at least until the DB is next compacted).

    You're aware objects can be hidden so that is the only comment I can make without a physical copy of the DB.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Unable to see the queries that are used in the access vba code macro

    @sanket.takle

    Code Tags Added
    Your posts do not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to Access Code Due to Bad PPT Library Ref 'Error in loading DLL'
    By aamailhot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2016, 03:43 PM
  2. Replies: 2
    Last Post: 11-10-2015, 01:53 PM
  3. Double Handling within working code Write to access and fire access macro
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2015, 12:19 PM
  4. Replies: 0
    Last Post: 01-21-2013, 12:47 PM
  5. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  6. Macro to use Access queries
    By Masact in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2009, 03:35 PM
  7. Macro retreiving data from SQL database through Access Linked tables and queries
    By Frederik_C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2008, 05:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1