How to read data from Access Table ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'm new to Access programming. I created a table called "UserName" contains
3 fields: UserID, Last Name and First Name.

I asked user to input their User ID into a field named "InputID" which is a
string:

Can someone shown me a SQL or other statement on how to:
1 - Open the UserName table
2 - Use a SQL statement to check if the entered user (stored in "InputID")
exist in the UserName table which contains a list of different user.

Here is the algorithm that I have in mind:
Open UserName table
SQL statement to check if the inputID exist in the UserName table <- this is
where I need help on what the SQL statement look lik
If exist then <-- need help on how to check if the SQL statement finds the
user
do something
else
prompt error msg
endif
 
Back
Top