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 / New Users / November 2004

Tip: Looking for answers? Try searching our database.

How do i verify data using another form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Calum112 - 28 Nov 2004 21:29 GMT
When i enter data in to table A, I want access to search field 1 in table B
and only accept the data i am entering if it is present in field 1.

Any help doing this would be much appreciated coz i have already pulled half
my hair out trying to do it.
John Vinson - 29 Nov 2004 01:44 GMT
>When i enter data in to table A, I want access to search field 1 in table B
>and only accept the data i am entering if it is present in field 1.
>
>Any help doing this would be much appreciated coz i have already pulled half
>my hair out trying to do it.

Open the Relationships window (the icon looks like three datasheets
with lines between them). Join TableA to TableB by field1 (which needs
to be the Primary Key in whichever table has Field1 as the unique
value, probably TableB). Check the "Enforce Relational Integrity"
checkbox.

                 John W. Vinson[MVP]    
            Join the online Access Chats
       Tuesday 11am EDT - Thursday 3:30pm EDT
     http://community.compuserve.com/msdevapps
Calum112 - 29 Nov 2004 11:41 GMT
> >When i enter data in to table A, I want access to search field 1 in table B
> >and only accept the data i am entering if it is present in field 1.
[quoted text clipped - 12 lines]
>         Tuesday 11am EDT - Thursday 3:30pm EDT
>       http://community.compuserve.com/msdevapps

Is there not a way to do it using a validaion code? I thought you can do it
using 'getdata'?
John Vinson - 29 Nov 2004 21:19 GMT
>Is there not a way to do it using a validaion code? I thought you can do it
>using 'getdata'?

Well... you probably could, with considerable difficulty. I'm not
familiar with "getdata" - is that an Access function, or SQL/Server,
or some other programming environment?

Field validation values cannot reference other tables, other fields,
or user defined functions; and they're pretty user-hostile as well.
Could you explain why you're reluctant to use the native, built-in
referential integrity constraints which are the standard way to do
this?

                 John W. Vinson[MVP]    
            Join the online Access Chats
       Tuesday 11am EDT - Thursday 3:30pm EDT
     http://community.compuserve.com/msdevapps
 
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.