Binding a grid to various sources.

E

et

I am not even sure how to explain what I need to do. I have 3 tables, and I
need to display and edit data from various fields from two of them:

Table1:
ID, fld1, fld2, Table2ID --one record

Table2:
ID, fld3, fld4 --one record

Table3:
ID, fld5, Table2ID -- One or 2 records for each Table2ID.

I want to display in the grid like this:
Col1 would bind to fld1,
Col2 would bind to fld2
Col3 would bind to fld5 (from the first record of table 3
Col4 would bind to fld5 (from the second record of table 3)...

Do you see my dilemma? If I create one query that joins all the data, bind
it to the grid, I get 2 records, rather than one record with 2 columns. Is
there anyway I can do that? I can't create 2 queries, because I can't bind
the grid to 2 different datasets. Or can I? This is an editable grid,
also, which makes it even more difficult to add, edit and delete these
records.

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top