Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mas mas is offline
external usenet poster
 
Posts: 5
Default help creating dynamic forms

Hello All,

I need help creating a form. I have a list of names that I get from a access
query. The list is not alway going to be the same length or have the same
data. I want to associate a number (1 - 7) with each of the names. How can I
do that dynamically with a form?

Here's what I am looking for:

Name 1 pull down menu with the number 1-7
Name 2 pull down menu with the number 1-7
..
..
..
Name n pull down menu with the number 1-7

I know how to use a ComboBox on forms, but how do I make it dynamic and
place additional ComboBox's dependant upon the number of Name's.

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default help creating dynamic forms

mas

I don't understand what the 1-7 means. Is that an example of when you have
seven names? Do you want one combobox for each name? How will you know how
many names there are? You get them from access, but are they in a range or
in a recordset or what?

Generally, the way I do it is to have as many comboboxes on the form as I
could possibly have names. I set all of their Visible properties to False.
In the forms Initialize event, I determine how many boxes I'll need and make
just that many visible.

That works well when the maximum number of boxes isn't far from the median
number of boxes. If you normally need 10 boxes but the maximum is 100, you
might want to create them on the fly so you don't have so many wasted boxes.
On the other hand, if you normally need 10 and the max is 20, just create
them all at design time and use the visible property to show what you need.
To create comboboxes at run time, see here

http://groups-beta.google.com/group/...ceac2c6ba673bb

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

mas wrote:
Hello All,

I need help creating a form. I have a list of names that I get from a
access query. The list is not alway going to be the same length or
have the same data. I want to associate a number (1 - 7) with each of
the names. How can I do that dynamically with a form?

Here's what I am looking for:

Name 1 pull down menu with the number 1-7
Name 2 pull down menu with the number 1-7
.
.
.
Name n pull down menu with the number 1-7

I know how to use a ComboBox on forms, but how do I make it dynamic
and place additional ComboBox's dependant upon the number of Name's.

Thanks,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Forms in Excel Greengard Excel Worksheet Functions 10 January 29th 09 02:43 PM
Creating excel forms Enrique Excel Discussion (Misc queries) 1 November 4th 06 12:05 PM
creating fax forms nana72 Excel Discussion (Misc queries) 2 November 9th 05 03:19 PM
Creating "records" in Forms rkg Excel Discussion (Misc queries) 0 September 27th 05 08:44 PM
misc ?'s about creating forms mark kubicki Excel Programming 0 August 24th 04 02:04 PM


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"