Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any plugin available to highlight conditional blocks in Access?

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
Hi, I was wondering if anybody knows of a plugin or whatever to highlight start and end sections of conditions? For example, I'd like to select "If" and have the corresponding "End If" highlight. I'm working from within MSAccess. thanks!
 


Hi,

I've never found a need for color coding blocks of code. I use native VBA, with no add-ins. I have, however, modified the Tools > Options...

I use the TAB key to indent my code, so that the blocks are readily noticable and much more understandable, like this...
Code:
   With objNewMail
      For Each varRecip In astrRecip
         .Recipients.Add varRecip
      Next varRecip
      blnResolveSuccess = .Recipients.ResolveAll
      If Not IsMissing(astrAttachments) Then
        For Each varAttach In astrAttachments
           .Attachments.Add varAttach
        Next varAttach
      End If
      .Subject = strSubject
      .Body = strMessage
      If blnResolveSuccess Then
         .sEnd
      Else
         MsgBox "Unable to resolve all recipients. Please check " _
            & "the names."
         .display
      End If
   End With
Just my 2¢.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
thanks, I do that too, but sometimes with long code and many conditions it can get hard to read...was just curious...I found it very helpful in my java work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top