Solved

What's wrong with this syntax?

Posted on 2004-04-21
3
121 Views
Last Modified: 2011-09-20
MsgBox "Some text "+CAST ([issueStatusCombo] AS String)+" some text"

Any ideas why this won't compile?
0
Comment
Question by:Loraura
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 50 total points
ID: 10878096
MsgBox "Some text " & issueStatusCombo.text & " some text"
0
 
LVL 9

Expert Comment

by:dancebert
ID: 10878555
Cast() is a SQL function, won't work in VB.  issueStatusCombo.text is already of type string, there's no reason for conversion.
0
 
LVL 1

Expert Comment

by:Nightma12
ID: 10879259
you seperate text with code with & not +
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now