The tables are not related so I can not join them in a query.
Unfortunatly,
if I use DLookup in the control source of the text box as suggested then
the
user can not modify the value in the Text Box. I guess I could create a
sub
form to do what I need but I thought there might be an easier way. I was
hoping that there was a way to just bind the text box to another table.
That
would be great.
Thanks for the quick response and all your help. I really apreciate it.
:
Is there a relationship between the two tables? If so, then create a
query
based on BOTH the tables, joined on the related fields and you can
include
fields from both tables in your query. Base the form's recordsource on
the
query, not the original table.
If the tables are not related, you can use an expression involving the
DLookup function in the controlsource of the textbox.
=DLookup( "FieldName", "TableName", optional-selection-criteria )
--
Good Luck
Graham Mandeno [Access MVP]
Auckland, New Zealand
I am trying to bind a text box to a table. However, the table I need to
bind
it to is not the same as the on in the Form's record source. Is there
an
easy
way to do this?
I tried to bind it by typing the following in the Text Box controll
source
but I got an error:
tableName!fieldName
Is there an easy way to do this?
Thanks,