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  

How to get around making 23 buttons ?



 
 
Thread Tools Display Modes
  #1  
Old September 1st, 2004, 11:25 AM
Debora Hollander
external usenet poster
 
Posts: n/a
Default How to get around making 23 buttons ?

I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting form'
which contains a drop-down list with the names of these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander
  #2  
Old September 1st, 2004, 11:59 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

To load the list of forms into a combo box, set its RowSource property to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32768) AND ([Name] Not Like '~*'))
ORDER BY MsysObjects.Name;

You can then use the AfterUpdate event of the combo to OpenForm.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Debora Hollander" wrote in message
...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting form'
which contains a drop-down list with the names of these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander



  #3  
Old September 1st, 2004, 12:09 PM
Dan Artuso
external usenet poster
 
Posts: n/a
Default

Hi,
You can use this query to fill a combo or list box with all your forms:

SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=-32768));

MSysObjects is a system table that contains meta data. you can view it if you
select Show System Objects from the Tools-Options menu

This code placed in the AfterUpdate of the combo would open the form:

DoCmd.OpenForm Me.yourCombo

--
HTH
Dan Artuso, Access MVP


"Debora Hollander" wrote in message ...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting form'
which contains a drop-down list with the names of these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander



  #4  
Old September 1st, 2004, 03:31 PM
hermie
external usenet poster
 
Posts: n/a
Default

How would an after update procedure openform look like?

hermie
"Allen Browne" wrote in message
...
To load the list of forms into a combo box, set its RowSource property to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32768) AND ([Name] Not Like '~*'))
ORDER BY MsysObjects.Name;

You can then use the AfterUpdate event of the combo to OpenForm.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Debora Hollander" wrote in message
...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting form'
which contains a drop-down list with the names of these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander






  #5  
Old September 1st, 2004, 04:20 PM
Debora Hollander
external usenet poster
 
Posts: n/a
Default

Thanks, it works ! BUT: I have more forms than I need to
include (26, and I only want 23 in the combo list). I
think a small adaptation is needed, but which ?

Debora.

-----Original Message-----
How would an after update procedure openform look like?

hermie
"Allen Browne" wrote in

message
...
To load the list of forms into a combo box, set its

RowSource property to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32768) AND ([Name] Not Like '~*'))
ORDER BY MsysObjects.Name;

You can then use the AfterUpdate event of the combo to

OpenForm.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Debora Hollander"

wrote in message
...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting

form'
which contains a drop-down list with the names of

these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I

think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander






.

  #6  
Old September 1st, 2004, 04:43 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

If you want to list only some of the forms, you could save their names in a
table.
Alternatively, change the Row Source Type of the combo to Value List, and
enter the names of the forms, e.g.:
"Form1";"Form2";"MyOtherForm"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Debora Hollander" wrote in message
...
Thanks, it works ! BUT: I have more forms than I need to
include (26, and I only want 23 in the combo list). I
think a small adaptation is needed, but which ?

Debora.

-----Original Message-----
How would an after update procedure openform look like?

hermie
"Allen Browne" wrote in

message
...
To load the list of forms into a combo box, set its

RowSource property to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32768) AND ([Name] Not Like '~*'))
ORDER BY MsysObjects.Name;

You can then use the AfterUpdate event of the combo to

OpenForm.


"Debora Hollander"

wrote in message
...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting

form'
which contains a drop-down list with the names of

these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I

think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander



  #7  
Old September 1st, 2004, 04:44 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

This example assumes the combo is named "cboForm":

Private Sub cboForm_AfterUpdate
If Not IsNull(Me.cboForm) Then
DoCmd.OpenForm Me.cboForm
End If
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"hermie" wrote in message
...
How would an after update procedure openform look like?

hermie
"Allen Browne" wrote in message
...
To load the list of forms into a combo box, set its RowSource property
to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32768) AND ([Name] Not Like '~*'))
ORDER BY MsysObjects.Name;

You can then use the AfterUpdate event of the combo to OpenForm.


"Debora Hollander" wrote in message
...
I have 23 forms that people can choose from to start
entering data. Is it possible to create a 'starting form'
which contains a drop-down list with the names of these 23
forms, which people can choose from, and then click a
button to go to that specific form ? Or is there some
other way to get the same result ?
I was thinking of placing a button per form, but I think
23 buttons is not very user-friendly...

Who can help me out here ? Thank you !

Debora Hollander



 




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
Using Multiple sets of Option buttons in one document Keith Midgette Mailmerge 2 June 11th, 2004 04:44 PM
Moving buttons on a chart Mark Charts and Charting 1 May 26th, 2004 04:24 PM
Making navigation buttons disappear Paul Henderson New Users 3 May 25th, 2004 04:55 PM
Radio Option Buttons Troubleshooting Ellen W Worksheet Functions 1 January 21st, 2004 06:26 PM
Combo box instead of command buttons John Worksheet Functions 9 November 19th, 2003 04:26 PM


All times are GMT +1. The time now is 03:33 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.