473,387 Members | 1,844 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,387 software developers and data experts.

help with login password.

52
the code i use presently changes the password but when it is revisited or the progamme is shut down and then started up again the password wil revert to the old one.I was thinking that i could use the Modelo that i can store the password there and change it.
IF ANYONE KNOWS HOW TO DO THIS.
i don't to store the password in a Access docso id be greatful if anyone could give me an answer.
THANK YOU VERY MUCH
Feb 1 '08 #1
4 1088
the code i use presently changes the password but when it is revisited or the progamme is shut down and then started up again the password wil revert to the old one.I was thinking that i could use the Modelo that i can store the password there and change it.
IF ANYONE KNOWS HOW TO DO THIS.
i don't to store the password in a Access docso id be greatful if anyone could give me an answer.
THANK YOU VERY MUCH
Hey,
u didn't mention here, where u store the Password. You have to store the password in a file. Then u see the topic on how write in a file. U can use here FileSystemObject. When u change ur password, everytime u write into that file, but not append.

Regards,
shuvo2k6
Feb 1 '08 #2
creative1
274 100+
IF you post your code here it will be easy to see how you are doing that.
Feb 2 '08 #3
lotus18
866 512MB
I was thinking that i could use the Modelo that i can store the password there and change it.
Can anyone explain to me what MODELO is?

Rey Sean
Feb 2 '08 #4
Ali Rizwan
925 512MB
Add a reference Microsoft Runtime Library to your project.

Declare Variables

Expand|Select|Wrap|Line Numbers
  1. Dim fso as new filesystemobject
  2. dim f as file
  3. dim t as textstream
Now to store your password to a text file use this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdwrite_Click()
  2.             set f=fso.getfile(file path)
  3.             set t=f.openastextstream(forwriting)
  4.             t.writeline(text1.text)
  5.             t.close
  6. End Sub

Now to read your password from text file use this code:
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdread_Click()
  2.             dim a as string
  3.             set f=fso.getfile(file path)
  4.             set t=f.openastextstream(forreading)
  5.             a=t.readline
  6.             t.close
  7. End Sub

For any more help you can contact me.

Regards
>> ALI <<
Feb 6 '08 #5

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

Similar topics

0
by: Yvonne | last post by:
Hi! I have a problem and wonder if anyone can help me with that. I am trying to make a community in php/mysql to work but it don't. I hope you can help me even if the community is in swedish. ...
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can connect through the server explorer in visual studio,...
15
by: carr4895 | last post by:
Hello. I was wondering if someone could help me too with a login form. Upon startup, I have to display a password screen and it should accept a user name and password. User name can be anything...
23
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
8
by: sathyashrayan | last post by:
Dear group, For a log-in page I have created a mysql db and user registers with a user name and password. The password field is encrypted with $passwd = sha1($_REQUEST); I insert the...
5
eragon
by: eragon | last post by:
I am making a password script, i have most of it done, ill show you, but i hit a brick wall.... lol, I have it so when you log in it takes you to your main page, that works, but when you enter the...
1
by: Tarcetial | last post by:
Im trying to make a personal website with a log in/registration system. I found some help with the log in and now i just need some help with the registration. This is the coding im already using: ...
13
by: Apostle | last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting...
1
by: punk86 | last post by:
Hi, i can register and login without fail. However i notice that my inputs are not record into the database. I do not know the reason. Can someone guide me into login and register. Actually im...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.