Itallicising from VBA

  • Thread starter Thread starter Mac
  • Start date Start date
M

Mac

Hi Everyone,

A hopefully straightforward question, I have a simple VBA public
function (see below) that calls part of a field value so that I can use
it in reports and so forth without having to constantly use the
function. Is there a way for me to pre-format the result so that when
it appears in a report or on a form it's in itallics? Apologies if this
has already been covered somewhere and I've not seen it.

TIA

Mac

Public Function SystemName() As String
SystemName = Mid(DLookup("Setting", "SystemOptions",
"OptionID='SystemName'"), 1, InStr(DLookup("Setting", "SystemOptions",
"OptionID='SystemName'"), ",") - 1)
End Function
 
Dear Doug,

Many thanks, I'll give the RTF option a go and see if that can be
worked into the existing reports.

Regards

Mac
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top