Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form based on query with additional text box.

Status
Not open for further replies.

strangeryet

Programmer
Jul 8, 2004
159
US
Hello,
All the fields on my form come from a single query.
I want to add a textbox to the form which will be invisible. The information in the textbox comes from a different table.

How can I include this on the form?

I tried setting the textbox's controlsource to
=tblNeeded!Field, but an "Error" displays in the text box when the form is loaded.

Thanks
 
Yes, thank you.

I tried in controlsource, it did not work. So I put in form load and it worked:

Dim LAmount As Currency

LAmount = DLookup("MileagePrice", "tblMileageAmt", "ID = 1")

Me.txtMileagePrice = LAmount
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top