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

Assigning values to a ComboBox from a Recordset?

Status
Not open for further replies.

Chewypoo

Programmer
Nov 28, 2001
5
CA
I have a recordset which is looksing up values from a table in another database (with the linking of the tablez). I now am be wanting to assign theses values to a combobox. Any ideas? Here's my code so far (pretty simple):

Dim dbs As Database, rst As Recordset, x As Integer
Set dbs = OpenDatabase("C:\OtherDatabase.mdb")
Set rst = dbs.OpenRecordset("OtherTable")
[MyComboBox].RowSource = ???

No ideaz what the ??? should be being! Any helpsies whould be helpfully helpful!




 
If the tables are linked... do this:

[MyComboBox].RowSource = "OtherTable"
 
Ahhh... my error! My error! I have mistyped the silly thing! I was meaning to say "withOUT the linking of the tablez" not with! So very sorry! I knowz that this would be the bestestest way if I was linking of the tables, but I cannot for the way this program must be programed!

So i say with out any further adooo... how does I make the fermenting thing working without these linking of the tables?!?

I somehwat am going bad over this!!

Thankyou for youre helpsies!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top