Results 1 to 2 of 2

Thread: Dynamicaly change name of datafield in datareport ????????????

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Location
    DAKAR (Sénégal)
    Posts
    26

    Dynamicaly change name of datafield in datareport ????????????

    Hi all

    i want to change in my code the name of a datafield in a datareport to swap when it needs the showed data


    Best regards
    Thoms

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    230

    Talking

    Code:
    rpt1.Sections("detail").Controls("txtpcntDisAs").DataField = rsresults.Fields("pcntDisAsIsSelected").Name
    assumes
    1) report object is named rpt1
    2) textbox to hold data is named txtpcntDisAs and is in the "Details" (or whatever you named it) section of your report.
    Shawn Hull
    VB6, SP3 (Professional Edition)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width