A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

format detail field at runtime



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2007, 01:38 PM posted to microsoft.public.access.reports
mcnewsxp
external usenet poster
 
Posts: 83
Default format detail field at runtime

i need to format a detail section bound textbox at runtime on a report.
i tried using the condition formatting by entering

IIf(InStr(Me.Result, "+") 0, "positive", IIf(InStr(Me.Result, "-") 0,
"negative", Me.Result))

nothing changed

also tried this in the deatil section

Me.txtResult.Properties(40) = IIf(InStr(Me.Result, "+") 0, "positive",
IIf(InStr(Me.Result, "-") 0, "negative", Me.Result))

but received an error msg.

how is this accomplished?

tia,
mcnewsxp


  #2  
Old May 15th, 2007, 02:31 PM posted to microsoft.public.access.reports
mcnewsxp
external usenet poster
 
Posts: 83
Default format detail field at runtime

i fixed my undinding the text field and simpling assinging the value ala:

txtResult = iff(......)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.