Computer Learning Zone CLZ Access Excel Word Windows

Education is what remains after one has forgotten what one has learned in school

-Albert Einstein
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > ASP
Back to Active Server Pages Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Bad Code
Dg Ewing 
     
4 years ago
I can not find my problem. the open connection works as i used it to read and write the only record in a test table.  but this logon process does not work.  It is not reading the record.
Dg Ewing OP  @Reply  
     
4 years ago

Dg Ewing OP  @Reply  
     
4 years ago

Alex Hedley  @Reply  
           
4 years ago
Let's get to some manual checks and printf debugging.

Hardcode the query in the db.
Does it work?

Then
Response.Write email
Response.End

After line 10.
This will check if you're getting an email from your request.
Alex Hedley  @Reply  
           
4 years ago
Please also look at using Parameters (Query String tip)
Dg Ewing OP  @Reply  
     
4 years ago

Dg Ewing OP  @Reply  
     
4 years ago
this small change fixed it.....
Alex Hedley  @Reply  
           
4 years ago
rs(password) => rs("password")
Richard Rost  @Reply  
          
4 years ago
Right you want the field NAMED "Password" the the field named whatever the value of Password IS.
Dg Ewing OP  @Reply  
     
4 years ago
I thought putting quotes meant that I wanted the word password and without quotes i wanted the value of field password.....Do I have that backwards?
Alex Hedley  @Reply  
           
4 years ago
When you said rs(password) you were saying whatever value password had e.g. Fred2.
So rs("Fred2"), and Fred2 isn't a FIELD in your Table.

There's a few different ways to get it
objField = objRecordset.Fields.Item("ProductID")  
objField = objRecordset.Fields("ProductID")  
objField = objRecordset.Fields.Item(0)  
objField = objRecordset.Fields(0)
Dg Ewing OP  @Reply  
     
4 years ago
isnt that what i am trying to say:

if the value in the rsPassword filed is equal to the value of form's value  lets say ok that is good  rs Password value = forms Password value

Fred2=Fred2
rs(password)=password

??
Dg Ewing OP  @Reply  
     
4 years ago
I would thought that rs("password") = password
would be

password<>Fred2

and rs('password") = "password"

would be password=password (both the name not value)
Kevin Yip  @Reply  
     
4 years ago
Hi Dg, certain syntax requires a *literal* string value of "password" because a string is expected by that particular syntax.  But other times it doesn't, and isn't.  Access does the same thing.  The two lines below do the same thing.  But when a literal string is required, it needs the quotes:

     Me("MyFieldName") = "xxxx"
     Me!MyFieldName = "xxxx"

Using literal strings to refer to field names lets you manipulate them in ways that can make coding easier.  For instance, if you have the 20 field names MyField1, MyField2, MyField3, ... up to MyField20, and you want to assign each them a value, instead of writing 20 lines of code, you only need 3 lines of code with a For Next loop:

     Dim i As Integer
     For i = 1 to 20
          Me("Field" & i) = SomeValue
     Next i

Since the field name is a string, you can concatenate it with something else to turn it into something else.  You can't do that if you use the syntax Me!Field1, etc.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Active Server Pages Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/23/2026 6:30:21 AM. PLT: 1s