Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

MS Acess 2010 form text box control data source question

Hi -

Is it possible to have a form which is using one table as it's data source but to have 1 text box on that form get data from a different source?

My form is connected to a table called ImportsTab

and my text box needs to be connected to a field called ExID in a table called ExportsTab

Thanks for any help

0
rinkydink
Asked:
rinkydink
2 Solutions
 
Rey Obrero (Capricorn1)Commented:



explain, why you need the textbox to be connected to a field called ExID in a table called ExportsTab..

you can use dlookup() function to get the information from the other table.
if the two tables are related, you can use a query with joins in the two tables and use the query as the record source of the form..
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
Not exactly, but you can have the Text box 'lookup' a value from that table, using DLookup() .... for example ... set the Control Source of the text box to something like this:

=DLookup("[ExID]","ExportsTab")

mx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now