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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating Controls

Status
Not open for further replies.

nullig

Technical User
Jan 20, 2004
10
CA
I have a database of TV Shows I have on CD/Tape, which contains fields for "Show Title", "Season #", "Episode #", "Episode Name" and "Original Air Date".

I have a form with a Combo Box for selecting the "Show Title" and a Tab Control with Tabs for each "Season", on which I would like a datasheet showing the episode info.

I need someone to point me in the right direction for coding this.

Thanks
 
You can make a listbox for each season tab you have for starters. In this example your table with all of your CD/Tape info is called TVShows, also make sure there aren't spaces or odd characters in your fields, it just complicates things
Then in the row source enter something like this:
SELECT Tvshows.showtitle, Tvshows.season, Tvshows.episodenum, Tvshows.episode
FROM TVshows
WHERE ((Tvshows.season) = "x") And ((Tvshows.showtitle) = "&comboboxname&")
ORDER BY TVshows.episodenum;


Durible Outer Casing to Prevent Fall-Apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top