Results 1 to 3 of 3
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    form operation


    I've created db that I'm installing on a client's machine that does not have Access 2010. I've created a package solution. Everything works well except for a weird problem. On a very simply form, I have a close button. When I click on the close button, it does nothing. I have to close out the application. The form works perfectly in a normal installation of Access 2010. Here's the close command I'm using behind the close button.
    DoCmd.Close acForm, "frm_Temp_Password", acSaveNo

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That looks like it should work except I usually use a more generic:
    DoCmd.Close acForm, Me.Name, acSaveNo
    Can you add a MsgBox to let you know the code is executing?

  3. #3
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I changed the close command to your generic statement. That had no positive effect. I put a message before and after the close statment. I confirmed that everything worked properly on my machine. When I installed on the test computer, I don't get either of the messages.
    I've been doing some additional testing. The form in question only has 1 field. When the form is loaded, I've set the focus to the close button. It will initially not work. If I alternate by moving the focus between the field and the command button, the command button will close the form. I'm using the mouse to move the focus. I should also let you know the datasources are a ODBC connection to a MySQL DB located on a web server. I've been developing this applicaton on my machine for about 1 week. I haven't experienced any problems like this. This is only happening on the machine that I'm using the runtime version of MS Access.

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

Similar Threads

  1. How to verify Insert Operation
    By Sibtain in forum Queries
    Replies: 1
    Last Post: 08-04-2011, 10:19 AM
  2. Number operation request.
    By Playerpawn in forum Access
    Replies: 0
    Last Post: 05-18-2011, 11:29 AM
  3. Operation must use an updateable query.
    By pericherlasuma in forum Access
    Replies: 1
    Last Post: 05-16-2011, 09:45 AM
  4. Operation Must use an Updateable Query
    By Lady_Jane in forum Queries
    Replies: 2
    Last Post: 12-14-2010, 03:02 PM
  5. Invalid Operation
    By ScottG in forum Forms
    Replies: 0
    Last Post: 11-14-2006, 02:05 PM

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