Validating data from two tables in access
please am new to c# i need help i want to create a login that can validate data from two different tables. please if there is any article to direct me to i will be glad
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Joginder BangerRank #360 · 7K reputationPosted Mar 24, 2015, 11:52 AM EDT
Create table TableName(id int,UserName varchar(50),Password varchar(max))
insert into TableName values(1,'testingOne,'India')
you have two option for communicate with database. First direct used in .cs page and another one is make a store procedure.
I have create one Store procedure
create proc Proceudre_name
(
@userName varchar(max),
@password varchar(max)
)
as
begin
select count(id) from tableName where UserName=@username and Password=@password
end
I hope this code is help full for you.
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 24, 2015, 4:00 PM EDT
But as i got your qyestion you can use the "join" for creation the single table from two table
then you can use this single table . it will be easy for you..........