Can Anybody Help Me Out ??? (1 Viewer)

vtrm

Registered User.
Local time
Today, 23:11
Joined
Jun 8, 2005
Messages
21
I HAVE A DB WITH SOME FORMS. I WANT TO POPULATE A COMBOBOX WITH THE NAMES OF THESE FORMS. HOW CAN I DO IT??:confused:
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 16:11
Joined
Feb 19, 2002
Messages
43,519
You might start by turning off the caps lock key.

The MSysObjects table contains a list of all objects in your database. You can use a query of this to populate the combo. The following will return a list of just the forms.

Code:
SELECT MSysObjects.[Name]
FROM MSysObjects
WHERE MSysObjects.[Type] = -32768
ORDER BY MSysObjects.[Name];
 

vtrm

Registered User.
Local time
Today, 23:11
Joined
Jun 8, 2005
Messages
21
Populating Listbox

THANKS PAT.
TO GO JUST A BIT FURTHER, WHAT SHOULD I DO IF I NEED THE "TAG" PROPERTY (NOT THE NAMES) OF THESE FORMS TO BE POPULATED INTO THE LISTBOX? IS THERE A WAY OUT??:eek:
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 16:11
Joined
Feb 19, 2002
Messages
43,519
You didn't turn off your caps lock button. I have no idea what the tag property of a form is.
 

vtrm

Registered User.
Local time
Today, 23:11
Joined
Jun 8, 2005
Messages
21
Open a Form and go to its properties - "Other" - You will find the Tag property.

Caps off !!
 

Users who are viewing this thread

Top Bottom