Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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
    Anyone Have Any Unanswered Questions On Sikhi Or God? Sikh Sikhi Sikhism Jan 7, 2017
    Question About Translations Questions and Answers Dec 20, 2016
    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

  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)
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page