|
|
Visible Property
Hello,
I'm trying to enter the following code in a form but its not working the way
I want it. This is what i'm trying to accomplish. The
btnContinuePaymentValidation runs a macro that takes the user to a different
form once the user is done entering the data on the form. However, I only
want the button to appear when txtPayAmtTotal = txtCheckAmountTotal.
Othwerwise the suer will continue without balancing for the day.
Private Sub Form_Dirty(Cancel As Integer)
If Me.txtPayAmtTotal = Me.txtCheckAmountTotal Then
Me.btnContinuePaymentValidation.Visible = True
Else
Me.btnContinuePaymentValidation.Visible = False
End If
Any feedback will be appreciated...
Thank You
|
|
0
|
|
|
|
Reply
|
Utf
|
3/22/2010 11:00:01 PM |
|
You can put code in the after update event of every updateable control like
this:
If Me.txtPayAmtTotal = Me.txtCheckAmountTotal Then
Me.btnContinuePaymentValidation.Visible = True
Else
Me.btnContinuePaymentValidation.Visible = False
End If
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
"Joe" <Joe@discussions.microsoft.com> wrote in message
news:205995E7-66D0-4FF7-AF76-1725D390BC4C@microsoft.com...
> Hello,
>
> I'm trying to enter the following code in a form but its not working the
> way
> I want it. This is what i'm trying to accomplish. The
> btnContinuePaymentValidation runs a macro that takes the user to a
> different
> form once the user is done entering the data on the form. However, I only
> want the button to appear when txtPayAmtTotal = txtCheckAmountTotal.
> Othwerwise the suer will continue without balancing for the day.
>
> Private Sub Form_Dirty(Cancel As Integer)
> If Me.txtPayAmtTotal = Me.txtCheckAmountTotal Then
> Me.btnContinuePaymentValidation.Visible = True
> Else
> Me.btnContinuePaymentValidation.Visible = False
> End If
>
> Any feedback will be appreciated...
>
> Thank You
|
|
0
|
|
|
|
Reply
|
Jeanette
|
3/23/2010 2:13:02 AM
|
|
Even simpler:
Me.btnContinuePaymentValidation.Visible = (Me.txtPayAmtTotal =
Me.txtCheckAmountTotal)
-TedMi
"Jeanette Cunningham" <nnn@discussions.microsoft.com> wrote in message
news:efRIk5iyKHA.2436@TK2MSFTNGP04.phx.gbl...
> You can put code in the after update event of every updateable control
> like this:
>
> If Me.txtPayAmtTotal = Me.txtCheckAmountTotal Then
> Me.btnContinuePaymentValidation.Visible = True
> Else
> Me.btnContinuePaymentValidation.Visible = False
> End If
>
>
>
> Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
>
>
>
>
> "Joe" <Joe@discussions.microsoft.com> wrote in message
> news:205995E7-66D0-4FF7-AF76-1725D390BC4C@microsoft.com...
>> Hello,
>>
>> I'm trying to enter the following code in a form but its not working the
>> way
>> I want it. This is what i'm trying to accomplish. The
>> btnContinuePaymentValidation runs a macro that takes the user to a
>> different
>> form once the user is done entering the data on the form. However, I
>> only
>> want the button to appear when txtPayAmtTotal = txtCheckAmountTotal.
>> Othwerwise the suer will continue without balancing for the day.
>>
>> Private Sub Form_Dirty(Cancel As Integer)
>> If Me.txtPayAmtTotal = Me.txtCheckAmountTotal Then
>> Me.btnContinuePaymentValidation.Visible = True
>> Else
>> Me.btnContinuePaymentValidation.Visible = False
>> End If
>>
>> Any feedback will be appreciated...
>>
>> Thank You
>
>
|
|
0
|
|
|
|
Reply
|
TedMi
|
3/23/2010 2:43:19 PM
|
|
|
2 Replies
164 Views
(page loaded in 0.076 seconds)
Similiar Articles: what event for conditionally visible property? - microsoft.public ...In my subform, I want a field to be visible if another field's value is "originator". I think I have the code, but don't know what event to put it ... Access 2007 Property for visible tables in navigation pane ...I have a form with a list box. I would like the list box to load the tables from my database that are visible in the Navigation pane. Where is this property set? Change form property at runtime - microsoft.public.access ...Hi Guys, I can change a controls visible property at runtime using a cmd button, but I can't seem to save the new setting when I close the Form ... make a text box visible and non visible - microsoft.public.access ...Make the text box visible if not equal to zero else change the visible property to not being visible. Or is there another way of accomplishing the same thing using the ... Detail Section Not Visible? - microsoft.public.access.forms ...Don't know what happened, but all of the sudden none of the controls, labels, text boxes, etc are visible in the Detail Section of my form? The "Visible" property of ... FormatCondition - microsoft.public.access.formscodingHi, Is it possible to have a conditional format to set, for example, the ..Visible property of a control? Or is it only possible to use the Format... Why can't I make a control invisible in Datasheet view ...I have a subform that is a datasheet. I want one of the controls not to be visible. I've change the Visible property to No but it still shows in the ... Label Visible on Condition! - microsoft.public.accessHow do I check to see if the database field is empty and if not, change the label's Visible property to True and add the ToolTip text? At RowDataBound event, you can do ... Can't hide Property Sheets - microsoft.public.access ...How to hide sheets and use xlVeryHidden constant in a macro In Microsoft Excel, you can hide sheets in a workbook so ... Basic macro, use the Visible property to hide or ... clear a combo box with a macro - microsoft.public.access ...I'm using a 2 combo boxes to set the visible property of 2 associated subforms. When the user enters information into one combo box, I want to clear... Control.Visible Property (System.Windows.Forms)Gets or sets a value indicating whether the control and all its child controls are displayed. Visible PropertyWhen used with the Application object, returns or sets whether a Microsoft Access application is minimized. You can also use the Visible property to show or hide a ... Visible Property - Access - Office.comWhen used with the Application object, returns or sets whether a Microsoft Office Access 2007 application is minimized. You can also use the Visible property to show ... Excel - Unable To Set The Visible Property Of The Worksheet Class ...Unable To Set The Visible Property Of The Worksheet Class - Various sheets are hidden and made visible through... - Free Excel Help Control Visible Property Changes when hosted on tab page ...I have a windows application built using VB.net Visual Studio 2005. A form in the application utilizes a .net tab control. I have written code to only 7/18/2012 6:03:48 AM
|
|
|
|
|
|
|
|
|