hello
i'm building a form to add budget entries in a table
my problem is that i need to figure out a way to
make a textfield display results from a query based on the employee that is selected in the same form...
(this query cannot be the form's control source)
i think i can best "explain" this with an SQL statement
Select query.totalpay from query where query.employee = form.employee
this field is calculated on the spot in a manner of speaking
(maybe there is a better way of doing this without the query?)
but i can't figure out how to make the textfields display values that come from a source other than the form's control source
i tried to copy and paste the SQL code from the query builder but it didn't work
i always get a #Name? "error" in the textfield...
also
i'm having a similar problem when, in the same form, i want to display the employee's information which is located in a different table than the forms control source...
(by the way, the form's control source has a "relationship" with the employee info table. The form is the child (contains the FK) of the employee details (which contains the PK).. not sure if this is relavent)
to re-itterate,
i mainly need to know how to make a textfield that has a different source than the form's control source
i would greatly appreciate any help you could give me
the help files are of very little assitance
thank you
Eric
i'm building a form to add budget entries in a table
my problem is that i need to figure out a way to
make a textfield display results from a query based on the employee that is selected in the same form...
(this query cannot be the form's control source)
i think i can best "explain" this with an SQL statement
Select query.totalpay from query where query.employee = form.employee
this field is calculated on the spot in a manner of speaking
(maybe there is a better way of doing this without the query?)
but i can't figure out how to make the textfields display values that come from a source other than the form's control source
i tried to copy and paste the SQL code from the query builder but it didn't work
i always get a #Name? "error" in the textfield...
also
i'm having a similar problem when, in the same form, i want to display the employee's information which is located in a different table than the forms control source...
(by the way, the form's control source has a "relationship" with the employee info table. The form is the child (contains the FK) of the employee details (which contains the PK).. not sure if this is relavent)
to re-itterate,
i mainly need to know how to make a textfield that has a different source than the form's control source
i would greatly appreciate any help you could give me
the help files are of very little assitance
thank you
Eric