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 February 24th, 2005, 06:11 PM
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
Unhappy help: compile error

hi,

i have face compile error in the coding at below. anyone can help me plz?
all the variables are text. The error is "user-defined type not defined" (red)

Function verify_user2(vuser, vpwd, vlevel1, vlevel2, vlevel3, vlevel4) As Boolean

Dim rs_user As Recordset
Dim DB As Database
Dim vsql As String
Set DB = CurrentDb
DoCmd.SetWarnings False

vsql = "select * from [tblName] where [ID] ='" & vuser & "' and [key] ='" & _
vpwd & "' and ([Level] ='" & vlevel1 & "' or [Level]='" & _
vlevel2 & "' or [Level]='" & vlevel3 & "' or [Level]='" & vlevel4 & "')"
Set rs_user = DB.OpenRecordset(vsql)

......
.....

End Function

thanks..

Reply With Quote
  #2  
Old February 25th, 2005, 03:34 AM
Mr_Jones Mr_Jones is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 20 Mr_Jones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 15 m 34 sec
Reputation Power: 0
try ... as DAO.Database

Reply With Quote
  #3  
Old February 28th, 2005, 10:54 PM
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
it is still the same..
whenever i type :
Dim db AS Database or Dim db AS DAO.Database or Dim rec AS RecordSet
the error : "user-defined type not defined" will pop up...

what step did i missed out? do i need to open any server or what ever other applications?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > help: compile error


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