Code reuse question

  • Thread starter Thread starter Bob Dufour
  • Start date Start date
B

Bob Dufour

I created a form for enetering values in lookup tables (eg Phone Types) in a
project. The form uses a SQLdataAdapter and works fine in project A.

In another solution - Project B- I want to reuse the same form. It will look
in the same database as it does in project A.

If I go in poroject B an add the form as an existing Item from the folder in
project A as soon as I add the existing item to project B I get 3 errors in
the task lisdt window TypeProjectA.dsPhoneTypes is not defined (I get that
twice) and Oveload resolution failed because no acessible 'Fill' can be
called with these arguments. Evidently the form in project B needs to be
able to refer to the SQL server datasets that were used in project A. But
simply adding these datasets as existing items in project B does not work
either.

Can anyone tell me how I can reuse forms that use SQL data adapters without
having to recreate the form from scratch in each new project?

Thanks for any help.

Bob
 
Hi Bob,

You did post the exact the same question earlier in this newsgroup

There where 2 answer and one from me, but no reaction from you.

The habbit in this newsgroup is that people answer in the orignal thread of
the answer if it was what they needed or maybe it did give a problem or
maybe misunderstood.

So please have a look at that original question?.

Cor
 
Back
Top