A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Command Buttons calls Forms



 
 
Thread Tools Display Modes
  #1  
Old June 25th, 2004, 03:45 PM
Tom
external usenet poster
 
Posts: n/a
Default Command Buttons calls Forms

I need some help with command buttons and form.

I have 3 forms... (naturally) they all have different fields.

Now, I want to create a blank form (let's call it "frmCommands") and add 3
command button in its header.

Then, when I click on either one of the 3 command buttons I want the
associated form appear in main body of the frmCommands.

How would I go about it? More specifically, how do I make either one of the
3 forms appear (dynamically) based on the click of the command button.

--
Thanks,
Tom



  #2  
Old June 25th, 2004, 04:13 PM
Rick Brandt
external usenet poster
 
Posts: n/a
Default Command Buttons calls Forms

"Tom" wrote in message
...
I need some help with command buttons and form.

I have 3 forms... (naturally) they all have different fields.

Now, I want to create a blank form (let's call it "frmCommands") and add

3
command button in its header.

Then, when I click on either one of the 3 command buttons I want the
associated form appear in main body of the frmCommands.

How would I go about it? More specifically, how do I make either one of

the
3 forms appear (dynamically) based on the click of the command button.


Use a subform control with no default SourceObject. Then in each button's
click event...

Me.SubformControlName.SourceObject = "FormName"


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #3  
Old June 25th, 2004, 04:20 PM
Tony C
external usenet poster
 
Posts: n/a
Default Command Buttons calls Forms

Add a Sub Form to the master Form, have the command
buttons update the content of the Sub Form whenever one of
the buttons is clicked.

Remember to set a default at "Form Open".

TC.
-----Original Message-----
I need some help with command buttons and form.

I have 3 forms... (naturally) they all have different

fields.

Now, I want to create a blank form (let's call

it "frmCommands") and add 3
command button in its header.

Then, when I click on either one of the 3 command buttons

I want the
associated form appear in main body of the frmCommands.

How would I go about it? More specifically, how do I

make either one of the
3 forms appear (dynamically) based on the click of the

command button.

--
Thanks,
Tom



.

  #4  
Old June 25th, 2004, 04:29 PM
Tom
external usenet poster
 
Posts: n/a
Default Command Buttons calls Forms

Rick:

Thanks for sharing the info w/ me... this works perfect!!!

--
Thanks,
Tom


"Rick Brandt" wrote in message
...
"Tom" wrote in message
...
I need some help with command buttons and form.

I have 3 forms... (naturally) they all have different fields.

Now, I want to create a blank form (let's call it "frmCommands") and add

3
command button in its header.

Then, when I click on either one of the 3 command buttons I want the
associated form appear in main body of the frmCommands.

How would I go about it? More specifically, how do I make either one of

the
3 forms appear (dynamically) based on the click of the command button.


Use a subform control with no default SourceObject. Then in each button's
click event...

Me.SubformControlName.SourceObject = "FormName"


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms view problem Josie Prell Using Forms 1 June 21st, 2004 10:51 PM
Word Forms? CEVisker New Users 4 June 21st, 2004 01:25 AM
Forms Check Box not working DLLower General Discussion 2 June 17th, 2004 09:34 PM
matching multiple forms on open to form records EdwardA Using Forms 0 June 10th, 2004 06:38 PM
Populate two+ fields on a Form, based on a pop up form's record Michael Miller Using Forms 0 June 9th, 2004 02:56 PM


All times are GMT +1. The time now is 03:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.