473,549 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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 1125

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

Similar topics

7
50937
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 wrote an INSERT statement that works fine however today I decided that as part of the application upgrade it should be return the record ID so I...
15
7198
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 15 line 15 is the recordset open line. Can someone please help
1
2912
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) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /gwisnewcon/test/successconfirmation_ori.asp, line 41
8
1457
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 range, or are in
0
2236
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 Variant On Error GoTo modRunOutputStoredProc_Err Dim cmd As Command Dim intIndex As Integer
1
3581
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 following line commented, so it does not activate, I can successfully print all of the response.write's below: rsGroup.Open strSQL, adoCon
12
12322
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 are of the wrong type, are out of acceptable range, or are in conflict with one another. " but if I've put amount manually and save the record then...
1
3529
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. /newsite/faq.asp, line 57 Can you look at the code below and let me know if the problem is my
6
1605
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 with MS access i hav converted it to vb.net 2005 and hav made all necessary changes in code now as the project was in vb 6.0 it has adodb recordset...
0
7462
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7492
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5101
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3510
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.