Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / December 2005

Tip: Looking for answers? Try searching our database.

Check textbox value against a table of stored values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carlos - 22 Nov 2005 19:42 GMT
I have user ID's stored in a table.  I would like to create a form with
a textbox that allows users to enter their ID's.  Once they enter their
ID into a textbox, I would like to program a command button to take the
value of the textbox, check to see if the ID is in the table.  If it
is, then I would like a value of true to be returned; otherwise, false.
Can someone offer some advice on that type of code?
Michel Walsh - 06 Dec 2005 12:13 GMT
Hi,

   DCount("*", "TableNameHere", "ID=" & id )

would return 0 is the numerical value id is not under ID for the mentioned
table.

Hoping it may help,
Vanderghast, Access MVP

>I have user ID's stored in a table.  I would like to create a form with
> a textbox that allows users to enter their ID's.  Once they enter their
> ID into a textbox, I would like to program a command button to take the
> value of the textbox, check to see if the ID is in the table.  If it
> is, then I would like a value of true to be returned; otherwise, false.
> Can someone offer some advice on that type of code?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.