Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
VB.NET, SQL, and Access conflicts
I'm a senior in high school, and several people in my class are attending the Business Professionals of America National Leadership Confrence at the end of April. I am part of a team competing in the Software Engineering section, and the warehousing program we are building has run into some very vexing problems.
We are writing this in VB.NET with an Access database. The current problem we are running into is with the user administration table and forms. The User table is designed as (field/type-field/type): ID/Autonumber-Username/Text-Password/Text-LName/Text-FName/Text-Admin/Boolean. Our form simply has textboxes for the text fields and a combobox for the boolean value. When we build/run and try to add a user, it throws a syntax error in the following SQL code:
"INSERT INTO Users (Username,Password,LName,FName,Admin) VALUES ('" _
& txtUsername.Text & "','" _
& txtPass1.Text & "','" _
& txtLName.Text & "','" _
& txtFName.Text & "'," _
& "True)" _
Is this not a valid SQL statement? If noone here can find error with that code, then I'll be happy to include more information(Form Code, Database Class, any other suggestions).