i have table 1 and table 2 . in table1 i have field like stuid and having 10 records. now my requirement is in table2 i have column stuid. The records in table1 all should be see in table2 .

Thanks in advance.


Not sure what you mean by that. If a common field exists in both tables, why you don´t you create a relation between them?

the fields are same. I don’t want like a lookup where we can select a single record. I want all the records in table1 should appear in table 2 as default.

Insert them in table2 when you are inserting in table1…(override insert() method of table1)

read about buf2buf() or and do a while select