im trying to connect a datagrid on a form that has two controls (adodc1 and adodc2) on it one is for the lessor table and the other is for the lease table. i tried to use an sql statement for the lease one but i have no clue what i'm doing im useing vb6 and i have a database from access (2000) where all of this is getting it's information my access database has these fields:
(in lessor table)
this one is run off of adodc1
the other table i have is the lease table it has this
this is run off adodc2 (for the datagrid)
i have put these on one form in visual basic 6.0 i want to have the datagrid have only the information that's in the adodc1(lessors table) so when i scroll throught the lessors table the datagrid will only show there information only. pleae help me understand this
lee123
(in lessor table)
Code:
lessorID = autonumber lessor name = text address= text city = text state = text zip = text phone = text
the other table i have is the lease table it has this
Code:
leaseID = autonumber lessorID = number rentamount= currency leaseterm=text from = date/time to = date/time
i have put these on one form in visual basic 6.0 i want to have the datagrid have only the information that's in the adodc1(lessors table) so when i scroll throught the lessors table the datagrid will only show there information only. pleae help me understand this
lee123
Comment