Solved

Strikethrough field

Posted on 2013-06-30
3
286 Views
Last Modified: 2013-06-30
Experts, what would be the proper way to strikethrough a field (much like you can in MS Word) if a certain condition were true?   txtAmount is a field on a form.   If it is possible to do this through conditional formatting let me know.  

If me.cboExpiredYN = -1 then
     me.txtAmount      'here is where I want the strikethrough


I am wanting to strikethrough the txtAmount if the ExpiredYN = Yes (-1)
I guess the If statement would be in the ON Current event.
0
Comment
Question by:pdvsa
  • 2
3 Comments
 
LVL 26

Expert Comment

by:MacroShadow
ID: 39288442
No pure Access way to do it. You can use a Microsoft Forms textbox control and use something like this: ocxText.Font.Strikethrough = True
0
 
LVL 26

Accepted Solution

by:
MacroShadow earned 500 total points
ID: 39288444
0
 

Author Closing Comment

by:pdvsa
ID: 39288651
thank you
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now