mikerob283
Member
- Joined
- Feb 15, 2005
- Messages
- 12
- Programming Experience
- Beginner
I finally narrowed a agonizing error down to this one item...
sql = "SELECT * FROM users WHERE username = '" & txtUsername.Text & "'"
will not work, but this will...
sql = "SELECT * FROM users WHERE username LIKE '" & txtUsername.Text & "'"
as you can see the only difference is the = and the LIKE
is that just how oledb works? i didn't have this problem when I used mysql or when I connected to an access database using an jet driver...
I just today uninstalled mysql and installed msde so that when I complete this project it will be minimal change to connect it to the sql server at work for a demonstration.
Oledb also allows me to put this one computers around the office without having to install a driver along with the application.
sql = "SELECT * FROM users WHERE username = '" & txtUsername.Text & "'"
will not work, but this will...
sql = "SELECT * FROM users WHERE username LIKE '" & txtUsername.Text & "'"
as you can see the only difference is the = and the LIKE
is that just how oledb works? i didn't have this problem when I used mysql or when I connected to an access database using an jet driver...
I just today uninstalled mysql and installed msde so that when I complete this project it will be minimal change to connect it to the sql server at work for a demonstration.
Oledb also allows me to put this one computers around the office without having to install a driver along with the application.