Dim conn As OleDb.OleDbConnection = New OleDb.OleDbConnection
Dim comm As OleDb.OleDbCommand = New OleDb.OleDbCommand("Select User Name, Password From AuthorizedInventoryStaff.mdb Where User Name='" & txtUserName.Text & "'and Password='" & txtPassword.Text & "'", conn)
Dim ds As New DataSet
comm.fill(ds, "AuthorizedInventoryStaff.mdb")
If ds.Tables("AuthorizedInventoryStaff.mdb").Rows.Count > 0 Then
response.redirect("Welcome.vb")
Else
response.redirect("Login.vb")
End If
2006-07-21
17:50:41
·
4 answers
·
asked by
braich_gal
3
in
Computers & Internet
➔ Programming & Design
using Ms access and ASP not asp.net
2006-07-21
17:51:20 ·
update #1
on the code page..the line comm.fill is underlined (fill not a member of system.data.oledb.oledbcommand) and response is also underlined(name not declared)..how to correct this?
2006-07-21
18:00:29 ·
update #2
am using the windows application template in ASP with vb project..
2006-07-21
18:23:26 ·
update #3
sorry...minor mistake in the question..i am using visual stusio .net 2003
2006-07-21
18:48:43 ·
update #4