Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Reserved word?

Reserved word?

Reserved word?


I know that 'password' is a reserved word and needs to go in square brackets, as in [password], but where do those square brackets go in something like this, please:

CODE -->

Dim Sql As String = "UPDATE university SET uniqueCode='',password=@password WHERE......


 cmd.Parameters.AddWithValue("@password", txtNewPwd.Text.... 

Thank you for any advice.

RE: Reserved word?

Thanks jbenson001

I was thinking of password here, sorry:


It is an Access DB that I have, so I would need to replace that SQL, wouldn't I?

I am getting an error on that line:

CODE -->

Dim Sql As String = "UPDATE university SET uniqueCode='',password=@password WHERE uniqueCode=@uniqueCode and (strEmail=@strEmail)", conn) 

and have tried every combination of ) and " and thought the error may really lay elsewhere such as 'password'.

Thanks for the link!

RE: Reserved word?

Not too familiar with Access syntax... but I would try putting square brackets around password


Are you getting an error?

RE: Reserved word?


CODE -->

Dim Sql As String = "UPDATE university SET uniqueCode='',password=@password WHERE uniqueCode=@uniqueCode and (strEmail=@strEmail)", conn) 

BC30205: End of statement expected after that final bracket.

I will put password between []


RE: Reserved word?

Hello jbenson001

The error goes if the ,conn) at the end is removed.

Thanks for your help.

RE: Reserved word?

Glad you figured it out!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close