Selecting a table from a database (DBCombo)
Database programming is confusing:p
I'm trying to use a DBCombo box to give me a list of tables in my db. I was wanting to be able to select one of the 3.
but can't figure out where and / or how to place the code. Am I on the right track ?
Private Sub DBTable_Click(Area As Integer)
Dim db As Database
'This is the object that will hold the connection
'to our database
Dim rs As RecordSets ( I'm thinking this is wrong too)
'This is the object that will let you select
'The table you want to work with
Set db = OpenDatabase("D:\projects\Bobdude\plas.mdb")
'This activates the database object, telling it
'to link to the plas.mdb database.
'NOW I'M SOOOOOO LOST
End Sub
Maybe I don't even want to use a DBCombo I'm getting the impression they have to be linked to a datacontrol.
Should I place this in my FormLoad Event ?
Quote:
If a man talks to himself , And his wife doesn't hear him. Is he still wrong ?