What is Wrong Here -
I am trying to validate the username and password at logon.I am doing this by connecting to an access database for usuing the data control.
This is the code I used, and on the Insert statement it gives me an ERROR.
Private Sub cmdOK_Click()
Dim username As String
Dim password As String
Data1.RecordSource = " SELECT Password From Advo_Details where Password = " '" & txtPassword & "'"
Insert Into("password")
Values (txtPassword)
If txtPassword = "password" Then
frmSearch.Show
frmSearch.Show
Else
MsgBox "Credentials provided are incorrect,Please retry!", vbOKOnly, "Log in ERROR"
txtUserName.Text = ""
txtPassword.Text = ""
txtUserName.SetFocus
End If
End If
End Sub
mid function problem -
i have just started learning vb at college, my first assignment is make the game hangman. i have made the command buttons into control arrays with each caption a letter of the aphabet.
what i want the program to do is search the chosen word and check if the letter chosen(by command
Where's the beef -
Hee hee hee... and I bet you thought this thread would have some meaning. But you were wrong! You were wrong about Raab's life and your wrong about this too!
okay if i took out that #include i get 18 erros! whats wrong with my code -
That just about did the trick now i have only 3 errors, i don't understand whats wrong with my if synatx it says its wrong, where i put the "else" in both places where i used an if() what did i do wrong in that?>
What’s gone wrong (DX) -
I have got a Elsa 920 (geforce3) and my directX programs in VB are messed up.
It kinda’ looks like it’s copping the buffers wrong!
It all worked right with my Geforce 2. Any idea what’s wrong
who else thinks jesus4u is funny -
Funny as in ignorant, foolish, 'slow', dim-witted, one sandwich short of a picnic, dumb, stupid, annoying, wrong, wrong, wrong, etc....
Wrong calculations -
I wrote an exam program for the local school which runs on 10 PCs. However, one of the PCs always does the final calculation of the candidate's results completely wrong. The other 9 PCs work fine. The PC doing the wrong calculations gives no problems when doing spreadsheets etc.
Help with Scoreboardlike thing -
correct = 1
wrong = 1
Dim Result As Double
Dim x, y As Integer
correct = x
wrong = y
lblcorrect.Text = correct
lblwrong.Text = wrong
If TextBox1.Text = 8 Then TextBox1.Text = correct
If TextBox1.Text <> 8 Then TextBox1.Text = wrong
MessageBox.Show("Correct!"
Help with Scoring -
correct = 1
wrong = 1
Dim Result As Double
Dim x, y As Integer
correct = x
wrong = y
lblcorrect.Text = correct
lblwrong.Text = wrong
If TextBox1.Text = 8 Then TextBox1.Text = correct
If TextBox1.Text <
Need help with multi-password... -
I need to know how to make one text box and one command button to be able to use 3 differant passwords.
ive tried:
If Pass.Text = "pass1" Then
MsgBox "Right",,"Right"
Else
MsgBox "Wrong",,"Wrong"
End If
If Pa
numbers appearing wrong.. -
attached below is the form of a program im making. one thing that i cant seem to fix is that i put different numbers in each side. and then i hit the button and then both numbers appear the same in the attack and defense text fields. i cant seem to find what is wrong. if it isnt a pro
FIX() function gives wrong result. -
Very simple calc. gives wrong result.
In VB6 write this code
msgbox fix(12/0.2)
and you'll see 59
how can it be?
I must use FIX() function but it gives wrong results. Can anyone prefer me oyher function or formula to find true result.
whats wrong with this bof and eof code for my recordset -
Hi
I am having trouble with this code for a delete button on my form
If (iresponse = vbYes) Then
'Kill filepath & rscustomers!messagefile
rscustomers.Delete
If rscustomers.BOF Then
rscustomers.MoveFirst
Else
rscustomers.MovePrevious
End If
End If
FIX() function giges wrong result. -
Very simple calc. gives wrong result.
In VB6 write this code
msgbox fix(12/0.2)
and you'll see 59
how can it be?
I must use FIX() function but it gives wrong results. Can anyone prefer me oyher function or formula to find true result.
[RESOLVED-For Now ;)] app not working the way its supposed to.. -
hey guys/girls,
i have written an app. its not working correctly. if i select a right or wrong answer, its marking it as wrong, and the percentage is not incrementing the way its supposed to either.
for example:
10 questions
1 wrong, 0 right would be:
10-1/10*100 should be 0
*** did I do wrong -
Yo mend,
I tried ur sign thing with my dad, and uhh, NOW I'M FRIKIN BANNED FROM MY COMP!!
*** did I do wrong?
Anyone see something wrong with this -
Does anyone else see something wrong with this screen-shot?
Usercontrol for kids -
Ok, I want to activate either mousemove or mousedown event in design mode. Is that possible?
I know it's not but I just want to know if i'm wrong or not. I hope i'm wrong.
I wish to register a complaint -
.... about this Parrot what I purchased,
not half an hour ago
from this very Boutique..
Oh yea, Norwegian Blue..
What's wrong wif it then...
I'll tell you what's wrong with it My Lad...
printing the entire contents of a rich textbox -
I have filled my richtext box with test results for 200 students. It lists the student name followed by the question number they got wrong and the subject of question they answered wrong , followed by the total amount they got wrong...sample
Ms. Trin
Q1 math
Q5 english
Q10 sc
What's wrong with this SQL string -
hi, i haven't done SQL. i am generating these strings in Acess. this is a string i edited but it gives me an error saying that there is a an extra "(" in the query. here it is.......
" WHERE (((Table.[Student Name]) Like " & SName & "*));"
wh
If function going wrong... -
I dont know why, but when I do this in my code, its always going on, whether it is bigger or not. Whats wrong???
Doctors office visit -
There's nothing worse than a snotty doctor's receptionist who insists you tell her what is wrong in a room full of other patients. I know you all have experienced this, and here's the way one old guy handled it.
An 86 year old man walked into a crowded doctor's office. As he approac
IP Monitoring -
Hello,
First off, this isn't for a bad cause. I run a web server and I need to monitor the IP's, in case something goes wrong. If something does go wrong, I make the IP of the person doing something wrong go to a different page.
I remember of an IP Stealer program that could redire
What's wrong with this picture -
look at everything on this web page..what's wrong with it?
removechild -
I could be wrong, but...wrong forum?
Stupid not to know what you don’t know. -
Everybody is ignorant in some field of knowledge. Not knowing the answer to a question others might consider easy, is neither a crime nor something to be embarrassed about.
However, it really bugs me when a person does not know when they are wrong about a factual matter. That is rea
Populating a combobox -
Quick question
i wanna populate a cbobox with values 8 to whatever..
what is wrong with this because it is starting at 10 and ending with
8 and 9
For i = 7 To 49
FrmValues.CboVal.AddItem i+ 1
Next
whats wrong here?
Hello... is that Mendhak ltd -
Oops... sorry! Wrong number
I'm always dialing the wrong URL!
whatz Wrong -
can anyone PLEASE tell me whats wrong with my SQL statement?
objCommand.CommandText = "SELECT * FROM Hardware where TagNo NOT IN (SELECT HardwareTag FROM Workstation)"
error prompted was "Data Type mismatch in criteria expression"
whats wrong???
Problems connecting to SQL Server -
I could be wrong but I don't think you can do that because the IP is basically the computer's address not the SQLserver address. Even thoughit is called SQL server it is not the actually server machine just the server side software which means the SQLServer name does not equal the IP
What's YOUR opinion -
I just got a major test back (it's geography, so don't worry). I received the esteemed mark of "73". Know why? Because I was given 5/20 on a section.
Now, what I did wrong was":
We had to make an "age pyramid", where we put everyone of said age in a graph r
Quiz... how do I go about doing this -
I have one label called lblQuestion which has the question pulled from the database (Access - 198 questions in all, 10 currently in DB), chkAnswer(0) to chkAnswer(4) to have the relevant possible multiple choice answers for the question (multiple selections could be the answer to the q
Asp:net 2.0 error -
What is wrong? Sometimes this error occurs and some times not. What the f... is wrong? I'm going completely mad
What wrong with this -
Dim ib As New Bitmap("C:\picture1.jpg")
Dim g As Graphics = Me.CreateGraphics
g.DrawImage(ib, 1, 1)
Whats wrong with this ? It doen't display the image.
adodc error again -
Dear Friend
I know this is very allaying. I feel the same way too. But can anyone explain to me what I have miss or done wrong. I have create a ado Data control and I have set the ConnectionString and have set the RecordSource. I have draw a TextBox and have set the DataSource to
Where am i wrong -
hi all
i am attaching a C program for windows 2000. I am trying to run
this in VC++. I get no errors or warnings but the windows
doesn't shows up!
What is wrong?Please tell me..
Thanks in advance
What does a failed stress test imply -
Hello folks...
Quick question... over the weekend at work, one of our servers started beeping a short repeated beep. We shut it off and it stopped beeping, but I ran Eurosoft's PC-Check on it. Everythign passed except for the 13 minute stress test. That pretty much means something i
direct3d texturing a rectangle -
Okay I have my simple direct3d app working. Im trying to load a texture onto a rectangle and instead it shades it red. What am I doing wrong? Its hard to debug and figure out whats wrong. The texture loading function works so I assume the texture is there.
Im attaching all my code i
how to avoid message error when a filename is wrong -
I want to test a path before using my code. like if it is wrong i can show a userform for checking a new path
but i don't see, is there a function for this ?
(UK only) Zerbra Crossing Wrong Way -
I saw this strange Zebra crossing yesterday. The lines appear to be pointing in the wrong direction. Does this mean pedestrians should give cars right of way?