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!

Word/RTF File will not show numeric values!

Status
Not open for further replies.

spencertaylor

Programmer
Jul 16, 2001
63
GB
After creation of the RTF document, any fields that are purely numeric are not displaying?!?!?!

Code snippet:
MyFile.WriteLine "\par \b Maximum Delegates \b0 "
MyFile.WriteLine "\par\par" & rs("MaxDelegates")
MyFile.WriteLine "\par"
MyFile.WriteLine "\par \b Duration \b0 "
MyFile.WriteLine "\par\par" & rs("CourseDuration") & " " & rs.Fields("CourseDurationType").Value
MyFile.WriteLine "\par"

Or

MyFile.WriteLine "\par \b Maximum Delegates \b0 "
MyFile.WriteLine "\par\par" & rs.Fields("MaxDelegates").Value
MyFile.WriteLine "\par"
MyFile.WriteLine "\par \b Duration \b0 "
MyFile.WriteLine "\par\par" & rs.Fields("CourseDuration").Value & " " & rs.Fields("CourseDurationType").Value
MyFile.WriteLine "\par"

Does anyone know why?
 
Sorted this one now! Duhhhhhhhh

MyFile.WriteLine "\par \b Maximum Delegates \b0 "
MyFile.WriteLine "\par\par " & rs.Fields("MaxDelegates").Value
MyFile.WriteLine "\par"
MyFile.WriteLine "\par \b Duration \b0 "
MyFile.WriteLine "\par\par " & rs.Fields("CourseDuration").Value & " " & rs.Fields("CourseDurationType").Value
MyFile.WriteLine "\par"

Needed a space after the two \par's!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top