Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Force Change PW 2    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Error in code
Nathan Shepard 
      
2 years ago
The error keeps popping up.  Richard talks about in his video. Please Richard,  can you fix it.  I change the UserName to "username"  It changes it back to UserName.  I checked the code a few times.  Something it causing it to error out.
Nathan Shepard OP  @Reply  
      
2 years ago

Nathan Shepard OP  @Reply  
      
2 years ago
I tried to shrink it down.
Kevin Robertson  @Reply  
          
2 years ago
What's the error?
Nathan Shepard OP  @Reply  
      
2 years ago
The line beginning with ID=
The error code is runtime error 438.  Object doesn't support this property or method.
Adam Schwanz  @Reply  
           
2 years ago
Is the code inside of a button or what event is firing it? It's not just by itself outside of a sub/function correct?

I use code similar to this all the time, so the syntax that he has is correct. Do you have a field called username that is on the form that is using the code? Your table is called UserT and has the UserID and Username field?

Also, it should change back to UserName, that is the way you want it, you are referring to the value in a field on your form, so whether that's John or Tim or whatever the value is, you don't want it to literally look for the username that equals "username".
Richard Rost  @Reply  
           
2 years ago
Where did you Dim ID?
Nathan Shepard OP  @Reply  
      
2 years ago
As listed in your code.  The Dim ID is the first line in the
Private sub logonbtn_click()
Dim ID as long, password as string
Richard Rost  @Reply  
           
2 years ago
Can you give me a time index where in the video I talk about the error?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Force Change PW 2.
 

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: 3/16/2026 2:27:23 AM. PLT: 1s