05-11-12, 12:16 AM
,Hi bro
.Thanks for replying me
:The following code is about a query in the Dataset that counts the users in the Users_Table
()Function UsersCount
get the password from the database
Dim DA As New ERPDataSetTableAdapters.User_Tbl_localTableAdapter
Dim TB = DA.User_Count
If TB = 0 Then
Return True
Else
Return False
End If
End Function
The problem is not in the (OpenFileDialog), it is in calling of these two (Functions -UsersCount- and -UserLoggedIn-) as I think but I'm not sure.
And the Function UserLoggedIn is to check if the user entered the correct username and password that were stored in the Users_Table.
I hope you got all the information that could help you to understand my issue.
I'll appreciate your help.
Best.
.Thanks for replying me
:The following code is about a query in the Dataset that counts the users in the Users_Table
()Function UsersCount
get the password from the database
Dim DA As New ERPDataSetTableAdapters.User_Tbl_localTableAdapter
Dim TB = DA.User_Count
If TB = 0 Then
Return True
Else
Return False
End If
End Function
The problem is not in the (OpenFileDialog), it is in calling of these two (Functions -UsersCount- and -UserLoggedIn-) as I think but I'm not sure.
And the Function UserLoggedIn is to check if the user entered the correct username and password that were stored in the Users_Table.
I hope you got all the information that could help you to understand my issue.
I'll appreciate your help.
Best.

