>Hi Mr.
>
>Thank you, but i need another thing.
>if you can tell me how can i add a view or table to dataenviroment (In Form) by code.
>and thank you again.
You can manipulate the data environment directly through code, but I find it simpler (perhaps, because of my previous knowledge of FoxPro) to use the Form.Load() event, with commands like:
use Client in 0 order ClientId
use Invoice in 0 order InvoiceId
select Invoice
set order to ClientId into Invoice
...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)