Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 132,346 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,144 people online right now. Registration is fast and FREE... Join Now!




run time error 13

 
Reply to this topicStart new topic

run time error 13, i want to know how to remove this error and what is the cause of this

kk00064@gmail.com
post 19 Feb, 2008 - 01:58 AM
Post #1


New D.I.C Head

*
Joined: 19 Feb, 2008
Posts: 1

if text1.text= 5 or may then [b]
msgbox "It is funny",vb information,"Message Prompt"
User is offlineProfile CardPM

Go to the top of the page

Nayana
post 19 Feb, 2008 - 02:11 AM
Post #2


DIC Hawk - 나야나 नयन:

Group Icon
Joined: 14 Nov, 2007
Posts: 824



Thanked 5 times

Dream Kudos: 175
My Contributions


You have a type mismatch.

Do you mind posting all your code so we can tell you what it is.

And by the way, your code is working like
If Text1.Text = (5 Or may)

which is trying to do a binary OR between 5 and may. You probably want:
If Text1.Text = 5 Or Text1.Text = may
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 03:45AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month