Results 1 to 10 of 10
  1. #1
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96

    Test if form is open between users

    Not sure if this should be in forms or programming. I found a similar post to what I'm asking in programming, but it's not working for my issue. What I'm trying to do is create a check between multiple users who are trying to go into the same form. I want the second person to also get into the form, but I need some other items to fire if they're not the first one in. The code works fine for a single user, but when a second user opens the form, the other items don't fire. I'm guessing it's something to do with the users being on different sessions, so I'm not sure if there is something I can do "globally" so that the second users session sees that the first user has the form open. Here is the code I'm using:

    If SysCmd(acSysCmdGetObjectState, acForm, "worklist j-l") = acObjStateOpen Then

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Each person should have their own copy of the program (frontend) of a split db
    with the tables on the backend of a split db.
    Then everyone can be in the 'same' form. Otherwise you can get errors.

  3. #3
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    Does that mean it can't be done with two users accessing the same instance of the front end via shortcuts? I understand this isn't the ideal way to do it, but I need to know what my options are.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Having multiple users sharing a single Front End, on a network drive, is a sure fire way to repeated episodes of corruption, speed and timing problems, and all manner of strange, odd and curious behavior!

    Being in forced retirement, I spend 8-10 hours a day here and on other Access forums/newsgroups, and over the past nine years have seen literally dozens and dozens of reports of split databases, using links to a single Front End, causing these kinds of problems, as well as massive data loss! The really insidious thing is that this kind of setup can work for extended periods of time before the troubles begin! But once it does, they become chronic, which is to say they occur over and over and over again!

    You simply have to put a copy of the Front End on each user's PC!

    Linq ;0)>

  5. #5
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    The only reason I haven't pursued that with all of the databases I have been tasked with maintaining is the nightmare of maintenance. I seem to get fairly regular requests to make changes and not being in IT, I don't know how/if I could push updates out to the users, so that leaves me with visiting each one to install the change. Taking that x almost 40 databases x a potential user pool of over 300 users = I need a raise Jokes aside, I did realize that local copies might be the only solution, just maybe not desirable. Not to hijack my own post, but if there is some instruction I can get on deploying new versions to the users, that might kill two birds with one stone.

  6. #6
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You could write vba code that pulls the list of users from a table,
    then copy the file to each user's work folder.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    There are a bunch of hacks out there for doing this automatically. Here are two:


    http://www.utteraccess.com/forum/Aut...E-t135969.html

    http://www.rogersaccesslibrary.com/f..._topic409.html

    You can also google using the terms

    front end updater

    and you'll get a bunch of hits, some free and some commercial.

    Linq ;0)>

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Totally agree with linq -split your database into FE/BE.
    There are many front end updaters.
    Here's a video of one, but there are others.

    Here are some performance tips for your review.
    http://www.granite.ab.ca/access/performancefaq.htm
    http://www.fmsinc.com/microsoftaccess/DatabaseSplitter/
    http://www.fmsinc.com/microsoftacces...ddatabase.html
    http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx

    Good luck

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    For discussion on methods of distributing frontend updates, review https://www.accessforums.net/code-re...end-33331.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    Paintballlovr is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    96
    The conversion has been made. Each user now has their own copy of the front end.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can multiple users open & use Access all at once
    By Mohapi Taole in forum Access
    Replies: 1
    Last Post: 09-25-2014, 02:40 AM
  2. CDO test if port is open first
    By Ruegen in forum Programming
    Replies: 0
    Last Post: 09-03-2014, 09:06 PM
  3. Test String test besed on table data
    By igourine in forum Programming
    Replies: 3
    Last Post: 12-01-2013, 06:16 AM
  4. Test if Form is Open
    By wdrspens in forum Programming
    Replies: 6
    Last Post: 06-13-2011, 03:39 PM
  5. Keying in Test answers to Access DB from Written Test
    By CityOfKalamazoo in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums