Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2004, 10:18 AM
Authorized User
 
Join Date: Sep 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.net and SQL select

Looking for sample code for a logon form.The user will enter a username and password. When the user clicks on the ok button the values should go to a select * where username=txtusername.text and password=txtpassword.text.
If the datebase return true then open the next form else increment counter by one.
Where I am having problems is after the connection string. I have
Dim strConnection as string="Provider=Microsoft.Jet.OLEDB.4.0;Data
source="
Dim cn as OleDbConnection=New OleDbConnection(strConnection)

At this point I am lost!

Looking for code, don't want to use the wizard.
Any help would be appreciated
 
Old November 4th, 2004, 07:02 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try this link
http://www.vb-helper.com/howto_net_login_form.html


It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 1.1,VB.NET,crystal reports, SQl server gvi Crystal Reports 1 September 11th, 2008 02:55 AM
sql error with vb.net 4-elements VB.NET 2002/2003 Basics 1 August 14th, 2005 12:04 AM
how to get multiple sql statements in vb.net pascalgeuze VB Databases Basics 2 April 8th, 2004 09:01 AM
MSDE and SQL CE (using VB.NET and ADO.NET) LEGS ADO.NET 0 July 12th, 2003 11:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.