Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 3rd, 2005, 12:08 AM
Utarian Utarian is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 11 Utarian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 55 sec
Reputation Power: 0
type mismatch

hi,
i have a function here... the error is "type mismatch" (in red)
the EmpNo and Pass is a string
anyone can tell me what problem is tat plz?
thanks a lot~




Function verify_user2(vuser, vpwd) As Boolean

Dim rs_user As Recordset
Dim DB As Database
Dim strCriteria As String
Set DB = CurrentDb()

DoCmd.SetWarnings False
guser = ""
glevel = ""

strCriteria = "select * from [Security] where [EmpNo] ='" & vuser & "' and [Pass] ='" & vpwd & "' "
Set rs_user = DB.OpenRecordset(strCriteria)

If rs_user.EOF Then
guser = ""
glevel = ""
rs_user.Close
verify_user2 = False
Exit Function
End If

End Function

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > type mismatch


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway