Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6610163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:48:18+00:00 2026-05-25T19:48:18+00:00

I have been requested to implement a login form into a friend’s Visual Basic

  • 0

I have been requested to implement a login form into a friend’s Visual Basic .NET application. He specifically requested that I should do this using LINQ to compare the input to a table in an Access database. I don’t really know why he imposed these restrictions, but who am I to judge?

However, the problem is I am not overly familiar with VB .NET, or LINQ. Could anyone tell me what the most efficient way would be to implement this?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:48:18+00:00Added an answer on May 25, 2026 at 7:48 pm

    If you Google for tutorials on VB.NET and LINQ, there is lot’s of information out there. Your login chec is going to work something like this with VB.Net/LINQ:

    ' create a re-usable helper function to validate login information
    Function Shared ValidateLogin(ByVal username As String, ByVal password as String) _
            As Boolean
    
        ' create LINQ context to the access database
        Dim ctx As New MyDataContext
    
        ' check credentials against User table
        Dim usr As User = ctx.Users.SingleOrDefault(Function(u) _
            u.UserName = username AndAlso u.Password = password)
    
        Return (usr IsNot Nothing)
    
    End Function
    
    • MyDataContext is a DataContext connected to the Access database. This can be created in Visual Studio by creating New Item -> Datacontext, then using the Server Explorer to connect to your Access database and drag/drop the tables into the DataContext.
    • ctx.Users would be replaced with whatever the name of the User table is in the Access database.
    • u.UserName and u.Password would be replaced with whatever the field names are in your users table for the user’s login and password information
    • This function could be called then from your application once you’ve collected the credentials, and you want to validate them. Then it’s up to you to perform the appropriate response logic based on whether the login was successful or not.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I have been looking into IKVMing Apache's FOP project to use with our .NET
I have a form in my MVC application that in theory should submit data
Have been looking at the MVC storefront and see that IQueryable is returned from
I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I've been asked to help a friend's company to bring up a web application.
I know that this question has been asked loads of times, but I have
Have been studying the file system related classes of Adobe AIR 1.5, but so
We have been using CruiseControl for quite a while with NUnit and NAnt. For
I have been experimenting with woopra.com A web analytics tool. Which requires a piece

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.