Results 1 to 6 of 6
  1. #1
    smahdih is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    52

    how can change one control in whole rows

    dorod (means hi)

    i have one problem, in a report insert new textbox nemed newLeadTime , in on load event report typed :

    me.NewLeadTime.value = me.leadTime.value * 2

    attach the result



    i want every row change by own leadTime , how can do this?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Rather than code, why not just have the second textbox have a control source of:

    =[leadTime] * 2

    To do it in code, you'd put it in the detail format event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    smahdih is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    52
    Quote Originally Posted by pbaldy View Post
    Rather than code, why not just have the second textbox have a control source of:

    =[leadTime] * 2

    To do it in code, you'd put it in the detail format event.
    forget the leadTime* 2 , indeed i have a Date/Time field in report and i want convert it to shamsi calender, i wrote vb code for conversion but every time load report just the last row convert to shamsi and other row is same last row.

    How i can convert each row?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    did you miss this?
    Quote Originally Posted by pbaldy View Post
    To do it in code, you'd put it in the detail format event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    smahdih is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    52
    Quote Originally Posted by pbaldy View Post
    did you miss this?
    sorry, i try it but not opearte, display a empty textbox in report

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Not sure what to say. If the code works on one record in the load event it should work on every record in the detail format event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 10-13-2011, 03:36 PM
  2. Replies: 2
    Last Post: 08-28-2011, 06:06 AM
  3. Replies: 6
    Last Post: 03-14-2011, 09:37 AM
  4. Change date from another control
    By NOTLguy in forum Forms
    Replies: 3
    Last Post: 11-20-2010, 11:24 AM
  5. Replies: 1
    Last Post: 10-19-2009, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums