Re: VB Programmers HELP!!
Re: VB Programmers HELP!!
Quote:
If Text1.Text And Text2.Text = "" Then
If Text1.Text = "" And Text2.Text = "" Then
also you should probable be using elseif
vb Code:
If Text1.Text = value4 And Text2.Text = Value4 Then
Form2.Show
Else If Text1.Text = "" And Text2.Text = "" Then
Form3.Show
End If
i use vbsendmail or CDO.message, you can search these, there are several other methods and other programmers will have different preferances
Re: VB Programmers HELP!!
1) I'm surprised any forms are showing at all, the code you show should cause a type mismatch error
Code:
If Text1.Text And Text2.Text = Value4 Then...
should be
Code:
If Text1.Text = value4 And Text2.Text = Value4 Then...
2)Dunno
3)Check out Manifest files, you can have XP style buttons without using any third party controls.
4)You can embed just about anything you want into an executable as part of a Resource file, I'm not sure that embedding dll's is a good idea.
Re: VB Programmers HELP!!
Quote:
Originally Posted by Milk
3)Check out Manifest files, you can have XP style buttons without using any third party controls.
I believe you will find examples of this in our CodeBank, so do a search there.
Re: VB Programmers HELP!!
Re: VB Programmers HELP!!
Code:
If InStr(Text1.Text, Value4) And InStr(Text2.Text, Value4) Then
Form2.Show
Else
Form3.Show
End If
this will detect if a certain string(value4) is in both text1 AND text2, if it is form2 shows, otherwise form3 shows
just make sure Value4 is a string
if you want it to be either text OR text, then replace AND with OR