473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Populating combo in Access 2000

Ig
Hi
How to populate combo with names of all forms in the project in Access 2000?
Thanks

Nov 13 '05 #1
4 1190
Private Sub Combo0_Enter()

Dim aob As AccessObject
Dim strList As String

For Each aob In CurrentProject.AllForms
strList = strList & aob.Name & ";"
Next aob
Me!Combo0.RowSourceType = "Value List"
Me!Combo0.RowSource = strList

End Sub

--
Brendan Reynolds (MVP)
"Ig" <Ig*********@sasktel.net> wrote in message
news:11*************@corp.supernews.com...
Hi
How to populate combo with names of all forms in the project in Access
2000?
Thanks

Nov 13 '05 #2
"Ig" <Ig*********@sasktel.net> wrote in
news:11*************@corp.supernews.com:
Hi
How to populate combo with names of all forms in the project
in Access 2000? Thanks

Set the rowsource to:
SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type=-
32768;
--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #3
On Wed, 2 Mar 2005 18:15:20 -0600, "Ig" <Ig*********@sasktel.net>
wrote:

The list of forms is in the corresponding Documents collection (the
list of open forms is in the Forms collection).
You build a semicolon-separated list of them, and you assign that to
the RowSource property. You set the RowSourceType to ValueList.

-Tom.

Hi
How to populate combo with names of all forms in the project in Access 2000?
Thanks


Nov 13 '05 #4
Ig
Thanks guys

"Ig" <Ig*********@sasktel.net> wrote in message
news:11*************@corp.supernews.com...
Hi
How to populate combo with names of all forms in the project in Access
2000?
Thanks

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Roy Padgett | last post by:
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through...
3
by: sao | last post by:
I am currently using Access 2000. In my table it is the following fields that are set up: 1 - Staff Name 2 - Department This table is already populated with 100+ records (staff along with...
2
by: Danny J. Lesandrini | last post by:
I searched Google but couldn't find any reference to this one, though I've observed the behavior before. The current case is where I select a value in a combo box, which has a Long Integer as...
1
by: Clay Reitsma | last post by:
I want to populate a combo box with a list of all of the field names in a database (ie. more than one table). I want the user to be able to select any field name to be used in an on the fly query....
3
by: ssb | last post by:
Hello, This may be very elementary, but, need help because I am new to access programming. (1) Say, I have a column EMPLOYEE_NAME. How do I fetch (maybe, cursor ?) the values one by one and...
3
by: Neil Guyette | last post by:
Hello, Everyone, I'm trying to find information on how to populate a combo box using a SqlDataReader. I want to be able to set the value of the combo's value property different then the...
2
by: DanAusitn | last post by:
Hi forum, I have been trying to figure this out for a while now, i thought it would be quite simple but has proved difficult as i am a learner. basicly i want to populate a list or combo box with...
2
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are fields in each one of the 3 tables. Once...
7
by: blazted | last post by:
I am having a problem with populating a combo box from a Access DB, I am calling a stored procedure that executes with one row of values. i want to populate those values into my combo box but right...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.