Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Oct 2002
    Location
    Sayre, Pennsylvania, USA
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close Form (2000)

    Hi,
    I'd like to close a form once I click on a button. The button opens a report and then runs an update query and then I would like it to close a form that is open. I tried the below code but I get this message after the report opens - This action requires an object name in the argument.

    DoCmd.Close acForm, frmReceiveQuoteRich, acSaveNo

    Thanks,
    Deb

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Close Form (2000)

    You have to surround the form name with quotes.
    DoCmd.Close acForm, "frmReceiveQuoteRich", acSaveNo
    Francois

  3. #3
    4 Star Lounger
    Join Date
    Oct 2002
    Location
    Sayre, Pennsylvania, USA
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Close Form (2000)

    Thanks that did it.

Posting Permissions

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