Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

TextBox Question!

Discussion in 'Information Technology' started by Bob, Jul 28, 2006.

  1. Bob

    Bob
    Expand Collapse
    Guest

    Can I get a text box to show"Overdue Amount " when this text
    box(tbOverDueAmount) shows anthing more than zero


    Thanks in advance.........Bob Vance




    Thanks in advance.........Bob Vance
     
  2. Loading...

    Similar Threads Forum Date
    Question About GGS Questions and Answers Aug 28, 2016
    Marriage And Discrimination Related Questions Blogs Mar 21, 2016
    Sikhi Questioning Faith Sikh Sikhi Sikhism Mar 3, 2016
    Entering into Sikhism: Questions on Reht Maryada. Blogs Oct 22, 2015
    A question about kes/hair? Blogs Oct 21, 2015

  3. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    > Can I get a text box to show"Overdue Amount " when this text
    > box(tbOverDueAmount) shows anthing more than zero


    You mean you want some other text box to show the words "Overdue Amount"
    if tbOverDueAmount is more than zero? YOu could give the text box a
    controlsource expression of

    =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  4. Bob

    Bob
    Expand Collapse
    Guest

    Dirk where do I put this script? Thanks Bob

    "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    news:%239rCX9UnGHA.4728@TK2MSFTNGP05.phx.gbl...
    > "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    >> Can I get a text box to show"Overdue Amount " when this text
    >> box(tbOverDueAmount) shows anthing more than zero

    >
    > You mean you want some other text box to show the words "Overdue Amount"
    > if tbOverDueAmount is more than zero? YOu could give the text box a
    > controlsource expression of
    >
    > =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
     
  5. Bob

    Bob
    Expand Collapse
    Guest

    I did put this in Control Source Window and got a #Name? Error....Thanx Bob

    "Bob" <xxx@xx.xx> wrote in message news:e86nil$16n$1@lust.ihug.co.nz...
    > Dirk where do I put this script? Thanks Bob
    >
    > "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    > news:%239rCX9UnGHA.4728@TK2MSFTNGP05.phx.gbl...
    >> "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    >>> Can I get a text box to show"Overdue Amount " when this text
    >>> box(tbOverDueAmount) shows anthing more than zero

    >>
    >> You mean you want some other text box to show the words "Overdue Amount"
    >> if tbOverDueAmount is more than zero? YOu could give the text box a
    >> controlsource expression of
    >>
    >> =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)
    >>
    >> --
    >> Dirk Goldgar, MS Access MVP
    >> www.datagnostics.com
    >>
    >> (please reply to the newsgroup)
    >>
    >>

    >
    >
     
  6. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Bob" <xxx@xx.xx> wrote in message news:e86nil$16n$1@lust.ihug.co.nz
    > Dirk where do I put this script? Thanks Bob
    >
    > "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    > news:%239rCX9UnGHA.4728@TK2MSFTNGP05.phx.gbl...
    >> "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    >>> Can I get a text box to show"Overdue Amount " when this text
    >>> box(tbOverDueAmount) shows anthing more than zero

    >>
    >> You mean you want some other text box to show the words "Overdue
    >> Amount" if tbOverDueAmount is more than zero? YOu could give the
    >> text box a controlsource expression of
    >>
    >> =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)


    With the form open in design view, add the text box to be used for this
    (if you haven't already). It will not be bound to any field. Then open
    the property sheet for the text box, go to the Data tab, and enter the
    expression (including the leading "=" sign) on the line that says
    Control Source.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  7. Bob

    Bob
    Expand Collapse
    Guest

    Oops still getting #Name? Maybe is it something to do what is in the other
    Text box tbOverDueAmount
    =NZ(DSum("OwnerPercentAmount","tblInvoice","OwnerID =" & tbOwnerID.Value & "
    and InvoiceDate <" &
    Format("Forms!frmBillStatement![tbDateFrom]","mm/dd/yyyy")),0)-NZ(DSum("PaidAmount","tblAccountStatus","OwnerID
    =" & tbOwnerID.Value & " and BillDate <" &
    Format("Forms!frmBillStatement![tbDateFrom]","mm/dd/yyyy")),0)

    Thanks Bob

    "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    news:unjSaHVnGHA.2332@TK2MSFTNGP05.phx.gbl...
    > "Bob" <xxx@xx.xx> wrote in message news:e86nil$16n$1@lust.ihug.co.nz
    >> Dirk where do I put this script? Thanks Bob
    >>
    >> "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    >> news:%239rCX9UnGHA.4728@TK2MSFTNGP05.phx.gbl...
    >>> "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    >>>> Can I get a text box to show"Overdue Amount " when this text
    >>>> box(tbOverDueAmount) shows anthing more than zero
    >>>
    >>> You mean you want some other text box to show the words "Overdue
    >>> Amount" if tbOverDueAmount is more than zero? YOu could give the
    >>> text box a controlsource expression of
    >>>
    >>> =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)

    >
    > With the form open in design view, add the text box to be used for this
    > (if you haven't already). It will not be bound to any field. Then open
    > the property sheet for the text box, go to the Data tab, and enter the
    > expression (including the leading "=" sign) on the line that says
    > Control Source.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
     
  8. Bob

    Bob
    Expand Collapse
    Guest

    Sorry this is on a Report!!!
    Bob

    "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    news:unjSaHVnGHA.2332@TK2MSFTNGP05.phx.gbl...
    > "Bob" <xxx@xx.xx> wrote in message news:e86nil$16n$1@lust.ihug.co.nz
    >> Dirk where do I put this script? Thanks Bob
    >>
    >> "Dirk Goldgar" <dg@NOdataSPAMgnostics.com> wrote in message
    >> news:%239rCX9UnGHA.4728@TK2MSFTNGP05.phx.gbl...
    >>> "Bob" <xxx@xx.xx> wrote in message news:e86mac$uqo$1@lust.ihug.co.nz
    >>>> Can I get a text box to show"Overdue Amount " when this text
    >>>> box(tbOverDueAmount) shows anthing more than zero
    >>>
    >>> You mean you want some other text box to show the words "Overdue
    >>> Amount" if tbOverDueAmount is more than zero? YOu could give the
    >>> text box a controlsource expression of
    >>>
    >>> =IIf([tbOverDueAmount > 0], "Overdue Amount", Null)

    >
    > With the form open in design view, add the text box to be used for this
    > (if you haven't already). It will not be bound to any field. Then open
    > the property sheet for the text box, go to the Data tab, and enter the
    > expression (including the leading "=" sign) on the line that says
    > Control Source.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
     
  9. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "Bob" <xxx@xx.xx> wrote in message news:e86oee$2mv$1@lust.ihug.co.nz
    > Oops still getting #Name? Maybe is it something to do what is in the
    > other Text box tbOverDueAmount
    > =NZ(DSum("OwnerPercentAmount","tblInvoice","OwnerID =" &
    > tbOwnerID.Value & " and InvoiceDate <" &
    >

    Format("Forms!frmBillStatement![tbDateFrom]","mm/dd/yyyy")),0)-NZ(DSum("
    PaidAmount","tblAccountStatus","OwnerID
    > =" & tbOwnerID.Value & " and BillDate <" &
    > Format("Forms!frmBillStatement![tbDateFrom]","mm/dd/yyyy")),0)


    Argh! I typed it wrong. <sigh> I'm having a bad week. Here's what
    you should put in the Control Source:

    =IIf([tbOverDueAmount] > 0, "Overdue Amount", Null)

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     

Share This Page