+ Reply to Thread
Results 1 to 2 of 2

vba works with local copy of access frontend but not network copy

  1. #1
    Registered User
    Join Date
    11-22-2017
    Location
    Oshkosh
    MS-Off Ver
    Office 365
    Posts
    12

    vba works with local copy of access frontend but not network copy

    We have a database that has the data stored in SQL, with an Access front end. State of the art, I know...
    There is a spreadsheet that pulls data from the database onto a worksheet, and allows the user to search through it (Contacts - user can enter a contact first or last name, or leave it blank for all contacts).

    This spreadsheet worked fine until this morning, when I deployed a new version of the database into production. Then, for some unknown reason, there were a handful of contacts entered over the last few days that were not showing up in the spreadsheet. Older contacts were there, but the newer contacts were not.

    So I initially double checked to make sure the database I deployed was pointed to the production sql database, not our testing environment. It wasn't. I went in through SQL server and verified the new contacts were in the production database - they were. I went into the front end and verified the data was in the production tables (linked tables to sql server). They were.

    But the spreadsheet would not pull them.

    After about 2 hours, on a whim I modified the code that opens the database and pointed it to the local copy of the database instead of the network copy. The local copy that just minutes ago resided on the server before I copied it to my c:\Data folder. So it is identical to the network version. Ran the process in the spreadsheet. Voila! It pulled the new data.

    So I'm really at a loss as to what is going on here. The local copy is copied over from the master copy out on the server, and is a direct/complete copy. Why would one copy work, while one doesn't?

    My first thought was permissions, but it isn't an issue of not being able to access any of the server, or even any specific table. It is an issue of not getting all of the records when using the network version versus the local version. But if I go into the network version, and select all of the records in the contact table, there are 12,342. If I go into the local version, again there is 12,342 records.

    While I have 'resolved' the issue by pointing the spreadsheet to the local copy (which has the benefit of being faster...), I don't know why or how I resolved the problem.

    Has anyone seen this before? Any thoughts or suggestions?

    I haven't posted actual code at this point, because the exact same code is being executed against both front-ends...

    We are running Office 2016/Office 365; I'm on Windows 7 Enterprise, while other users are running Windows 10. It doesn't seem to be an OS issue, because I have the same issue they have.

    Thanks
    Steve

  2. #2
    Registered User
    Join Date
    11-22-2017
    Location
    Oshkosh
    MS-Off Ver
    Office 365
    Posts
    12

    Re: vba works with local copy of access frontend but not network copy

    appears to have been some sort of timing issue... worked fine from the network the next day. Possible latency with linked tables? Who knows... off to the next disaster...

+ 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. Copy files from VM Ware to the local or the network path usign Excel Macro
    By kumarvivek07vit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 10:28 AM
  2. Excel=FrontEnd and Access=Backend DB
    By M P in forum Excel General
    Replies: 5
    Last Post: 04-12-2012, 05:19 AM
  3. How to avoid concurrency in Access database when using Excel as Frontend
    By RagonichaFulva in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2012, 08:56 AM
  4. Unable to open Access on Local Area Network
    By MikeWaring in forum Access Tables & Databases
    Replies: 1
    Last Post: 12-22-2010, 04:14 PM
  5. Copy data from excel to SAP frontend
    By shahsuhasp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2010, 04:28 AM
  6. Excel FrontEnd - Access DataSource Example Needed
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2008, 03:00 PM
  7. [SOLVED] Create form in Access, use as frontend for Excel
    By bv111 in forum Excel General
    Replies: 0
    Last Post: 06-28-2006, 05:30 PM
  8. [SOLVED] Local Office file automatically synchronized with network copy
    By Hall in forum Excel General
    Replies: 5
    Last Post: 04-30-2005, 11:06 PM

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