PC Review


Reply
Thread Tools Rate Thread

Code to close a form Access 2000

 
 
Suki
Guest
Posts: n/a
 
      13th May 2004
Is it possible to close and open forms in vba
from another form that is being used,
my input form is named Collection and the form
I want to close is called Artist and then open a
form called Location all from the collection form

Hope for help
TIA

Suki



 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      13th May 2004
On Thu, 13 May 2004 10:28:34 -0700, Suki wrote:

> Is it possible to close and open forms in vba
> from another form that is being used,
> my input form is named Collection and the form
> I want to close is called Artist and then open a
> form called Location all from the collection form
>
> Hope for help
> TIA
>
> Suki


Code an event procedure on the Collection form:
DoCmd.Close acForm, "Artist"
DoCmd.OpenForm "Location"

If you wish to have the "Location" form open as Dialog, then use
DoCmd.OpenForm "Location", , , , , acDialog

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2000 Unexpectedly Quits When You Run Code to Close an Object Justin A. Microsoft Access Form Coding 0 23rd Apr 2004 12:31 AM
code/query from form Access 2000 jb33 Microsoft Access Form Coding 2 14th Nov 2003 08:59 PM
Switchboard form -Close application & ACCESS 2000 Vivian Microsoft Access Forms 1 7th Oct 2003 04:21 PM
access 2000. Form hangs when attempting to close! s. smith Microsoft Access Form Coding 0 5th Oct 2003 09:39 AM
Can't Design View or close form, or close Access Bradley C. Hammerstrom Microsoft Access Forms 1 23rd Sep 2003 07:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 PM.