Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add a button to a form that opens another form

1 view
Skip to first unread message

Kim

unread,
Apr 3, 2011, 7:32:10 PM4/3/11
to
Hi all,

I'm using Access 2002 and am having trouble creating a button to open
another form.

I've done a bit of research but am just starting out with all this so
am having trouble.

Can someone advise me in basic terms how to do this?

Thanks.

Kim

Bob Quintal

unread,
Apr 3, 2011, 7:45:05 PM4/3/11
to
Kim <anas...@gmail.com> wrote in news:3a69d53e-bffc-42ed-b4d7-
f0fa12...@k10g2000prh.googlegroups.com:

In design view for the form, make sure to enable the wizard on the
toolbbox, then drag a command button from the bar to the form. Select
form operations from the wizard, select open form from the options then
select your target form. You can choose to open the form to a specific
record, or all records..

--
Bob Q.
PA is y I've altered my address.

Kim

unread,
Apr 3, 2011, 8:09:34 PM4/3/11
to
On Apr 4, 9:45 am, Bob Quintal <rquin...@sPAmpatico.ca> wrote:
> Kim <anast...@gmail.com> wrote in news:3a69d53e-bffc-42ed-b4d7-
> f0fa12dbb...@k10g2000prh.googlegroups.com:

Thanks so much Bob.

Worked perfectly. :o)

Kim

unread,
Apr 3, 2011, 8:13:31 PM4/3/11
to
On Apr 4, 9:45 am, Bob Quintal <rquin...@sPAmpatico.ca> wrote:
> Kim <anast...@gmail.com> wrote in news:3a69d53e-bffc-42ed-b4d7-
> f0fa12dbb...@k10g2000prh.googlegroups.com:
>
> > Hi all,
>
> > I'm using Access 2002 and am having trouble creating a button to open
> > another form.
>
> > I've done a bit of research but am just starting out with all this so
> > am having trouble.
>
> > Can someone advise me in basic terms how to do this?
>
> > Thanks.
>
> > Kim
>
> In design view for the form, make sure to enable the wizard on the
> toolbbox, then drag a command button from the bar to the form. Select
> form operations from the wizard, select open form from the options then
> select your target form. You can choose to open the form to a specific
> record, or all records..
>
> --
> Bob Q.
> PA is y I've altered my address.

Oops... all the steps seemed to work but when I press the button while
it's running I get the message "The expression On Click you entered as
the event property setting produced the following error: Object or
class does not support the set of events.

Any advice on how to fix this?

Thanks again!!!

John W. Vinson

unread,
Apr 3, 2011, 8:21:15 PM4/3/11
to
On Sun, 3 Apr 2011 17:13:31 -0700 (PDT), Kim <anas...@gmail.com> wrote:


>
>Oops... all the steps seemed to work but when I press the button while
>it's running I get the message "The expression On Click you entered as
>the event property setting produced the following error: Object or
>class does not support the set of events.
>
>Any advice on how to fix this?
>
>Thanks again!!!

Please open the form in design view; select the button; click the ... icon by
its Click event; open the code window and copy and paste the code to a message
here. Also post the Name property of the form that you're trying to open.

One suggestion: don't use blanks, punctuation, or special characters
(particularly parentheses, apostrophes and quotes) in the names of objects. If
you're doing so try changing the name of the form to contain only letters,
numbers and underscores and see if it works better.
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com

Kim

unread,
Apr 3, 2011, 9:46:36 PM4/3/11
to
On Apr 4, 10:21 am, John W. Vinson
<jvinson@STOP_SPAM.WysardOfInfo.com> wrote:

Every time I go into "view code" my access crashes. I think I need to
reinstall first.

John W. Vinson

unread,
Apr 4, 2011, 12:57:57 AM4/4/11
to

That's not going to help, I fear. I don't think it's the Access executable
that's corrupt; it's probably your database.

Try Tools... Database Utilities... Compact and Repair (after making a backup).

If that doesn't work try the suggestions at
http://www.granite.ab.ca/access/corruptmdbs.htm

0 new messages