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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing properties for a field

Status
Not open for further replies.

lamaar

Technical User
Jun 29, 2000
392
GB
how do I change the text box properties in VB if the value of a field is a certain number (ie. less than zero, 0 or more than zero? I have used the IIf ([Fieldname], "true", false") but this only displays two results. I have a little knowledge of VBA but don't know how to refer to fields within a report. would it be something like

If Report!myfield = 0 Then
Report!Reportname.textbox = "days before"
Else IF ......
Report!....
Esle
Report!...
End If

regards Lamaar75@hotmail.com
 
Select Case report!myfield
case 1
Report!Reportname.textbox = "days before"
case 2
Report!Reportname.textbox = "as many"

case 3
Report!Reportname.textbox = "case statements"

case 4

Report!Reportname.textbox = "as you like "

end select
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top