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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub-form data in form text labels 1

Status
Not open for further replies.

dtutton

Technical User
Mar 28, 2001
58
DE
Im trying to use an expression in a form text label to relate to data in a subform.

Specifically Im refering to the first record of the subform (Quotes) where there is a field price.

Can I refer directly to the subform or do I have to set up a query refering to the table.
 
Sure you can David but with a Text Box,
In its control source something like:
=Me![NameOfYourSubFormAsSeenByYourMainForm].Form![YourFieldNameOnTheSub]

Gord
ghubbell@total.net
 
I tried:

=[Me]![tbEquipQuotessubform].[Form]![FOBPrice]

but get #Name?

Any thoughts?


 
Yes sir:
=Me.[tbEquipQuotessubform].[Form]![FOBPrice]

and check that your subform is really called that when you click on it once through the main form. Now back to that other!
Gord
ghubbell@total.net
 
Slight time out there!!!
If it's still acting up try this (Has to work!)

=[tbEquipQuotessubform].[Form]![FOBPrice]

wacky brackets...why's it always got to be brackets... Gord
ghubbell@total.net
 
Gord,

You got it, thanks alot. Is there a clear documentation to this somehere.

Thanks again

David
 
Morning, Hi and Thanks David! Hit F1 to see your built in Access help or if you would like to pick up a book to read by the fire instead, check at and find Microsoft Press. There's also a wonderful book "Access 97 Developers Handbook" (probably have a 2000 version by now) with sample disc and more. It's by Sybex and I'd bet you can find it anywhere you choose. But don't forget; the place for good help, even if a little foggy is right here! :) Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top