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!

& Chr(13) Why Does it show up as an error

Status
Not open for further replies.

richmond88

IS-IT--Management
Sep 25, 2003
32
GB
Hi,

I have the following code:-

ParameterField.PromptText & Chr(13)
DisplayText = DisplayText & "Report Name: " &
ParameterField.ReportName & Chr(13)
DisplayText = DisplayText & "Has Current Value: " &
ParameterField.HasCurrentValue & Chr(13)

For what reason do the & showup in the code window with a blue line underneath them and a help tip as expression expcted.

Thanks

Chris
 
Because you haven't added another expression to the statement. If you want to include the expression that is wrapped on the next line, you would have to use "& _" rather than just "&".


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks for the reply,

I am sorry but it is the & before the Chr(13) that is the problem.


Chris
 
In that case it's because you haven't set PromptText to equal anything (you've just wrote an ampersand after it for some reason).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks.

I missed a line of code above ParameterField.PromptText & Chr(13).

Once again

Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top