![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
On my invoice I show payment type 1, 2 or 3. How do I set up a textbox on the report so it is visible when payment type is 1 and not visible when payment type is 2 or 3? Thanks! Cassandra |
#3
| |||
| |||
|
|
Allen, Thanks for responding! My question is about a textbox on a report! Cassandra "Allen Browne" <abrowne1_SpamTrap (AT) bigpond (DOT) net.au> wrote in message news:FXrVa.21624$OM3.8265 (AT) news-server (DOT) bigpond.net.au... Use the After Update event procedure of PaymentType to set the Visible property of the text box: Private Sub PaymentType_AfterUpdate() Dim bShow As Boolean If Me.[PaymentType] = 1 Then bShow = True Else bShow = False End If If Me.[NameOfYourTextBox].Visible <> bShow Then Me.[NameOfYourTextBox].Visible = bShow End If End Sub You also need to run this code when a record loads into the form, i.e. in the Current even of the form: Private Sub Form_Current() Call Sub PaymentType_AfterUpdate End Sub You may also want to do something similar in the Undo event of the form, using the OldValue of PaymentType. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to the newsgroup. (Email address has spurious "_SpamTrap") "Cassandra" <crudigear (AT) lexus (DOT) net> wrote in message news:T3pVa.26104$Mc.2027200 (AT) newsread1 (DOT) prod.itd.earthlink.net... On my invoice I show payment type 1, 2 or 3. How do I set up a textbox on the report so it is visible when payment type is 1 and not visible when payment type is 2 or 3? Thanks! Cassandra |
![]() |
| Thread Tools | |
| Display Modes | |
| |