Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 63
  1. #46
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47

    Quote Originally Posted by June7 View Post
    Good catch, ItsMe. The Save and Close macro is set for the Prompt ("Do you want to save changes to form?"). This should be set to No - for all of the Save and Close buttons.
    Where can I set this to No?

  2. #47
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Do you know how to open embedded macro for editing?
    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.

  3. #48
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    Quote Originally Posted by June7 View Post
    Do you know how to open embedded macro for editing?
    I'm not sure. Click the ellipsis or view code?

  4. #49
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Yes, click the ellipsis. This will open the relevant editor.
    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.

  5. #50
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    "macro is set for the Prompt ("Do you want to save changes to form?")"

    okay, am I looking for those exact words? I don't see Prompt, or the above question.

    thank you

  6. #51
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    The idea is not to have a macro asking for design changes. You can not make design changes in an executible file nor can you ask Access to "Save" a design, even if changes were not made. The macro is trying to "Save" a form.

    All you can do is "Close the form. So have your macro Close and do nothing else or use VBA that looks like this

    Private Sub Close_Click()
    DoCmd.Close
    End Sub

  7. #52
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Are you in the button's Embedded Macro designer? Do you see the line that says: Save Prompt

    Change Prompt to No.
    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.

  8. #53
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    I clicked the ellipsis, chose macro builder, but the button's macro designer is blank. I did add DoCmd.Close to the close button's code, and also removed the undo button.

  9. #54
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    Just to clarify... I clicked the ellipsis, chose macro builder.
    The tab that opens is labeled frm24hrNsg:Close:On Click
    On the window, there is a green plus sign with a drop-down that says Add New Action.
    ======
    I see...

    Do I choose Close Window? When I choose CloseWindow, Object Type is blank, Object Name is blank, Save is set to Prompt. When I change that to No, I get a warning sign saying unsafe action.

  10. #55
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If you use the wizard to create a new control button, the wizard will help you to create the macro. If you use the ellipses for an existing control and the field next to the ellipses is blank, the ellipses will prompt you to choose macro, code builder, or expression (I believe). This will create a NEW macro, VBA procedure, expression. If the field is not blank, the ellipses will take you to the appropriate area to edit existing macros, VBA, etc.

    You need to make a choice to use an embedded macro or VBA.

  11. #56
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Odd, I thought it was just Close the last time I looked. I don't use macros. I just tested and don't get the warning. Macro works.
    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.

  12. #57
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    Sorry, I don't see what you see with the macro. Wish we could send screen shots to each other.

    I tried changing Record locking to edited record thinking that would allow a new subsequent record to open, tested on two different computers, and still unable to open two forms at the same time.

    I archived the data so I could send the BE. If you have time to test, I would very much appreciate it. NursingReports_be.zip

    I, also, made sure that I was not in design mode when trying to open the form on other computers. Still unable to open the form if already open on another computer. Once the form is filled out and/or closed on the first computer, the second computer is then able to open the form.


    I don't know if this helps, but the end-user is only to add records. Supervisors may update or delete records - which I created a separate form for updating, and a macro to delete. I was wondering if having the tracking number on the form is causing the problem, but the tracking number is needed to provide to supervisors for update/delete ability.

  13. #58
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    I found my first accde (which is opening on multiple computers) that does not have:
    Now() Report date/time,
    <Date() Event Date
    <Date() Birthdate
    required reporter name

    It also has a save button and a close button, which I know Close will save the record.

    Anyway, I was hoping that I could export the form to the db because it works. Unfortunately, we can't export from an accde

  14. #59
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Images can be attached to post, I just copy/pasted records from an Access table and that created an embedded image in the post.

    No idea why I was able to edit the macro without the warning you see. Does it still allow the change?

    Not seeing anything in the BE to cause issue.
    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.

  15. #60
    katmomo5 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2013
    Posts
    47
    Hi June, thanks for the continued help. While I was racking my brain, I created a quick new form off of the table without the command buttons. Tested it, and it opens on more than one computer, takes data and saves to the BE. I'm formatting the form and I just want a simple button for the user to click to let them know the data is saved and close the form. I'm scared of using the same button which was the close button, right? Will the Save Record button also close the form?

Page 4 of 5 FirstFirst 12345 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 08-20-2013, 09:37 AM
  2. Replies: 15
    Last Post: 03-21-2012, 08:44 PM
  3. Replies: 2
    Last Post: 03-01-2012, 04:14 AM
  4. Replies: 2
    Last Post: 11-14-2011, 09:16 AM
  5. Multiple users in database at same time
    By toshea in forum Security
    Replies: 4
    Last Post: 12-07-2009, 02:22 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