Click here to Skip to main content
15,919,479 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDialing a Phone Number from Visual Basic Pin
S.Rajeshwar23-Apr-07 5:14
S.Rajeshwar23-Apr-07 5:14 
AnswerRe: Dialing a Phone Number from Visual Basic Pin
Dave Kreskowiak23-Apr-07 5:37
mveDave Kreskowiak23-Apr-07 5:37 
GeneralRe: Dialing a Phone Number from Visual Basic Pin
keninfo24-Apr-07 2:07
keninfo24-Apr-07 2:07 
QuestionProblem with dt.Rows.Count Pin
RichardBerry23-Apr-07 1:36
RichardBerry23-Apr-07 1:36 
AnswerRe: Problem with dt.Rows.Count Pin
andyharman23-Apr-07 2:53
professionalandyharman23-Apr-07 2:53 
AnswerRe: Problem with dt.Rows.Count Pin
Dave Kreskowiak23-Apr-07 5:51
mveDave Kreskowiak23-Apr-07 5:51 
GeneralRe: Problem with dt.Rows.Count Pin
RichardBerry23-Apr-07 22:05
RichardBerry23-Apr-07 22:05 
QuestionData type mismatch in criteria expression. Pin
peteyshrew22-Apr-07 23:40
peteyshrew22-Apr-07 23:40 
i am trying to read a number from an access table check it and use it to control access to another page.

this is the code snippet where i think the problem is and the feedback i'm getting is saying this "Data type mismatch in criteria expression" - referring to the highlighted line of code below.

Dim PinNumber As String


PinNumber = "SELECT DISTINCT Pin FROM Accounts WHERE Pin='" & Me.tbPin.Text & "'AND AccountID = '" & Me.tbID.Text & "'"

comm.CommandText = PinNumber 'the variable is declared as a command
dr = comm.ExecuteReader 'gives the variable a value

If dr.Read() Then 'if the entry is correct (readable)
Form2.Show() 'show the index varibale (form)
Me.Close() 'close the current form

Else 'if the entry is incorrect
MessageBox.Show("Invalid Pin, please try again") 'displays error message
tbPin.Clear() 'clears the managerid
tbID.Clear()

End If
AnswerRe: Data type mismatch in criteria expression. Pin
Colin Angus Mackay23-Apr-07 0:21
Colin Angus Mackay23-Apr-07 0:21 
AnswerRe: Data type mismatch in criteria expression. Pin
RichardBerry23-Apr-07 1:39
RichardBerry23-Apr-07 1:39 
GeneralRe: Data type mismatch in criteria expression. Pin
Colin Angus Mackay23-Apr-07 3:35
Colin Angus Mackay23-Apr-07 3:35 
GeneralRe: Data type mismatch in criteria expression. Pin
ChandraRam23-Apr-07 3:43
ChandraRam23-Apr-07 3:43 
GeneralRe: Data type mismatch in criteria expression. Pin
Colin Angus Mackay23-Apr-07 4:02
Colin Angus Mackay23-Apr-07 4:02 
QuestionCrystal Reports Exporting Problem Pin
freefika22-Apr-07 23:01
freefika22-Apr-07 23:01 
QuestionVery URGENT.......Serial Port Buffer Pin
navyasri22-Apr-07 21:55
navyasri22-Apr-07 21:55 
AnswerRe: Very URGENT.......Serial Port Buffer Pin
Patrick Etc.23-Apr-07 18:49
Patrick Etc.23-Apr-07 18:49 
QuestionFace detection algorithm? Pin
tuanlm7522-Apr-07 20:28
tuanlm7522-Apr-07 20:28 
AnswerRe: Face detection algorithm? Pin
Christian Graus22-Apr-07 23:09
protectorChristian Graus22-Apr-07 23:09 
QuestionCustom reporting tools [modified] Pin
shreekar22-Apr-07 19:59
shreekar22-Apr-07 19:59 
QuestionWHAT IS THE EQUIVALENT OF THIS CODE IN VB.NET Pin
klaydze22-Apr-07 19:54
klaydze22-Apr-07 19:54 
AnswerRe: WHAT IS THE EQUIVALENT OF THIS CODE IN VB.NET Pin
MatrixCoder22-Apr-07 20:11
MatrixCoder22-Apr-07 20:11 
QuestionHelp with service and logged in user Pin
dBrong22-Apr-07 18:35
dBrong22-Apr-07 18:35 
AnswerRe: Help with service and logged in user Pin
coolestCoder22-Apr-07 19:17
coolestCoder22-Apr-07 19:17 
AnswerRe: Help with service and logged in user Pin
Dave Kreskowiak23-Apr-07 4:13
mveDave Kreskowiak23-Apr-07 4:13 
QuestionDATAGRID OF VB.NET 2003 AND 2005 Pin
klaydze22-Apr-07 16:04
klaydze22-Apr-07 16:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.