Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - & Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

& Problem

 Post Reply Post Reply Page  <123>
Author
IrishNewbie View Drop Down
Newbie
Newbie


Joined: 06 November 2003
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote IrishNewbie Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 6:30am

Marty, the problem with the create account button is that sometimes when its pressed once the record isnt created and i have to click it again for it to be put in.

Do i not need a password field in the DB for when the user returns to log into his account????

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 9:00am
You could create a routine (sub) wich will add the data, and afterwards validates that the data is there. If not, it will add it again, and so on.
Gone..
Back to Top
IrishNewbie View Drop Down
Newbie
Newbie


Joined: 06 November 2003
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote IrishNewbie Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 9:47am
is that for entering the password??? is there a reason that the DB wont accept the password when its basically a string like the rest of the fields???  Its frustrating cos thats the only field it wont enter into the DB.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 7:18am

Wait. That routine is used to be sure the data gets into the database, because you have to push the button twice. Not really efficient, but it works.

Gone..
Back to Top
IrishNewbie View Drop Down
Newbie
Newbie


Joined: 06 November 2003
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote IrishNewbie Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 9:16am

Can you think of any reason why i am having trouble inserting the password data only?? its the only field it wont take.

 

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 10:45am

Post you code. It should look like this:

If txtPwd1.Text = txtPwd2.Text Then

'The database routine

Else

'The error msg.

End If

By the way, VB.NET has validators, which do this kind of validation BEFORE the data goes into the database. That might be a solution.

Gone..
Back to Top
IrishNewbie View Drop Down
Newbie
Newbie


Joined: 06 November 2003
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote IrishNewbie Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 11:58am
I think i figured out whats wrong, is Password a reserved word in Access?? I changed the column name from Password to Pword and its working ok now.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 12:57pm
 Yes password is a reserved word.. Just like FROM, WHERE, INSERT, DELETE etc.
Gone..
Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.