473,388 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

argument are of the wrong type are out of acceptable range , are in conflict with

this code is the code of log in section . but it keeps me giving an debug saying
argument are of the wrong type are out of acceptable range , are in conflict with one another

i have a registration section also and it works well


Expand|Select|Wrap|Line Numbers
  1. Dim rs As New ADODB.Recordset
  2. With rs
  3.     .Open "SELECT * FROM tblSecurity WHERE Username = '" & txtUser.Text & "'", conn, adOpenStatic, adLockReadOnly
  4.     If rs.EOF Then
  5.         If txtPass.Text = !Password Then
  6.  
  7.             MsgBox "Username and Password Succesful!"
  8.  
  9.  
  10.         Else
  11.  
  12.             MsgBox "Invalid Password, Try again!", vbCritical, "Warning"
  13.             txtUser.Text = ""
  14.             txtPass.Text = ""
  15.             txtUser.SetFocus
  16.             ctr = ctr + 1
  17.         End If
  18.     Else
  19.         MsgBox "Invalid Login, Try again!", vbCritical, "Warning"
  20.         txtUser.Text = ""
  21.         txtPass.Text = ""
  22.         txtUser.SetFocus
  23.        ctr = ctr + 1
  24.        End If
  25.         If ctr = 3 Then
  26.                     objLock (True)
  27.                 MsgBox "You have attempted to Login 3 Times in the system. " & _
  28.                         "Please call the Programmer for Assistance " _
  29.                         , vbCritical, "Warning Information"
  30.                 End If
  31.  
  32.     .Close
  33.     Set rs = Nothing
  34.  
  35. End With
  36. End Sub
Apr 22 '15 #1
0 1120

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Tim Gaunt | last post by:
Hi, I'm hoping that someone will be able to help me with this one, I'm developing an application which basically inserts a load of data into the database ready for validation at a later date, I...
15
by: Erica | last post by:
I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /shop/results.asp, line...
1
by: Jack | last post by:
Hi, I am trying to add a new record to a main page. This page is the processing page to a form. However, I am getting the following error message: Error Type: ADODB.Recordset (0x800A0BB9)...
8
by: the other john | last post by:
Here's my project info first... DB: Access 2000 server: IIS 2003 Here is the error I'm getting... ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable...
0
by: Edward | last post by:
I have a wrapper function for executing a SQL Server Stored Procedure that returns no records: Public Function modRunStoredProc(vstrSPName As String, ParamArray vvarParams() As Variant) As...
1
by: iam247 | last post by:
Hi I have a web page which receives information from a form (using request.form) and also attempts to look at an Access query to read in recoeds to a variable named rsGroup. When I have the...
12
by: anantraoneel | last post by:
Hi Friend My project is a Library System. In Project is Book Master form. If I've select Book Type from Type Master and Publication from Publication Master then this error has come: "Arguments...
1
by: thecubemonkey | last post by:
Hi everyone, I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another....
6
by: gforgourav | last post by:
'Arguments are of wrong type, are out of acceptable range, or are in conflict with one another' this error occurs ... i m using vb.net 2005 with sql server 2000 backend i had a project in vb 6.0...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.