Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't do what the wizard can!!

Status
Not open for further replies.

Toby1kenobe

Instructor
May 26, 2002
66
0
0
GB
I just can't get dorothy back to kansas.......sorry!!!

If I create a form using a wizard all the controls etc have the links to the underlying table set. How can i set up a list box that calls its information from 'Names' in the tables tblStudentInformation?. I've tried using the expression builder but without luck

Any help much appreciated
Thanks for your time
Toby
 
Hi, Toby:

The wizard should work: make sure the wizard is highlighted, then drag the list box icon to the place you want it on your form and size it (I prefer the combo box because it takes less room, and you can type in additional information.) Select "I want the list box to look up the values in a table or query." and complete the other choices in the wizard. You may end up with a bound or unbound list box.

The Row Source in the property sheet, Data, for the list box will display something like the following:
Code:
SELECT [tblStudentInformation].[Names], [tblStudentInformation].[FirstName], [tblStudentInformation].[LastName] FROM [tblStudentInformation]

(Personally, I'd want to rename "Names" to "StudentID".)

I for one, don't care to replace the wizard when he does such a good job with something like this.

I hope this is helpful.
Gus Brunston [glasses] An old PICKer, using Access2000.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top