Fieldref

BJO@bitas.dkBJO@bitas.dk Member Posts: 4
Hi,

I'm trying to copy a record from one company to another.
Thats no big deal :wink:
But I would like the user to setup which fields have to be copyed.

F.ex. The user teels the system to copy from cutomer

No.
Name
Name 2
That means that in all de other companys the only data I would like to retirve is exatly the same data.

I have tried with fieldref, but it dosnt work!

Comments

  • garakgarak Member Posts: 3,263
    Do you save the Fieldname or field No.. When you use the Field No. it works fine.

    RecRef.open(CopyRec."Table No.");
    FieldRef := RecRef.Field(CopyRec."Field No."); //Not the Fieldname
    .
    .
    .
    Do you make it right, it works too!
Sign In or Register to comment.