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

Using an If Then Statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to use the If Then statement in the following manner. I want to take the value in a RptTextBox and enter it into a RptLabel like this.

If drReport.Sections("Section1").Controls_("RptTextBox") = "Slow" Then
drReport.Sections("Section1").Controls("RptLabel") = "S"
Else
drReport.Sections("Section1").Controls("RptLabel") = "F"
End If

Does anyone know how to accomplish this.

Thanks,

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top