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

vb6.0 help urgent

Private Sub Command1_Click()
On Error Resume Next
If Trim(Text3.Text) = Trim(Text4.Text) Then
rs.MoveFirst
While Not rs.EOF
If (Trim(Text1.Text) <> Trim(rs.Fields(0))) And (Trim(Text2.Text) <> Trim(rs.Fields(1))) Then
MsgBox (" you are not existing user")
Text1.Text = ""
Text2.Text = ""
End If
rs.MoveNext
Wend
If rs.EOF Then
rs.AddNew
rs!pwd = Trim(Text3.Text)

rs.Update
MsgBox "Password change successfully"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End If
Else
MsgBox "Please correct Password"
Text3.Text = ""
Text4.Text = ""
End If
End Sub


i am using above code for change password here text1 is USEID text2 is OLDPASSWORD text3 is NEWPASSWORD and text4 is CONFIRMPASSWORD but it is not working



Thanks
Jul 25 '06 #1
2 2282
sashi
1,754 Expert 1GB
Hi Kumar,

please refer to below sample code segment..

insert new record..
Expand|Select|Wrap|Line Numbers
  1.   rs.AddNew
  2.     .. do something here ..
  3.   rs.Update
  4.   rs.Close
  5.   Set rs = Nothing
  6.  
update existing record..
Expand|Select|Wrap|Line Numbers
  1.     .. do something here ..
  2.   rs.Update
  3.   rs.Close
  4.   Set rs = Nothing
  5.  
if you notice properly.. rs.AddNew is only aplicable when it comes to inserting new data.. take care n good luck my fren.. :)

kindly refer to the link attached below..
http://www.thescripts.com/forum/thread512359.html
Jul 25 '06 #2
can u give me fully explanation about this one i am new to vb6.0






Hi Kumar,

please refer to below sample code segment..

insert new record..
Expand|Select|Wrap|Line Numbers
  1.   rs.AddNew
  2.     .. do something here ..
  3.   rs.Update
  4.   rs.Close
  5.   Set rs = Nothing
  6.  
update existing record..
Expand|Select|Wrap|Line Numbers
  1.     .. do something here ..
  2.   rs.Update
  3.   rs.Close
  4.   Set rs = Nothing
  5.  
if you notice properly.. rs.AddNew is only aplicable when it comes to inserting new data.. take care n good luck my fren.. :)

kindly refer to the link attached below..
http://www.thescripts.com/forum/thread512359.html
Jul 26 '06 #3

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

Similar topics

3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
9
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...

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.