Solved

What's wrong with this syntax?

Posted on 2004-04-21
3
120 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
Comment Utility
MsgBox "Some text " & issueStatusCombo.text & " some text"
0
 
LVL 9

Expert Comment

by:dancebert
Comment Utility
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
Comment Utility
you seperate text with code with & not +
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

18 Experts available now in Live!

Get 1:1 Help Now