Although VB offers a very large number of date formats for Data Reports, I can’t seem to be able to figure out how to change a format at RUN time.
For example, if I have an RptTextBox named txtDate in the Details Section of the report, variations on the following are illegal, giving me an ‘Object doesn’t support this property or method’ error on line **
Dim intCount As Integer
With rptMe.Sections(3).Controls
For intCount = 1 To .Count
If .Item(intCount).Name = "txtDate" Then
.Item(intCount).DataFormat = "%m-%d-%Y" **
Exit For
Next intCount
End With