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

Unable To Capture The Value Of A Subform Field On A Query

Status
Not open for further replies.

jbl1167

Programmer
Joined
Oct 2, 2006
Messages
78
Location
US
I migrated a database from Access 97 to Access 2003. There are queries that make reference to textboxes in a subform. They work well in 97 but in 2003 when I reference those text boxes I get strange characters or nulls when I know that there is data there. This for example works forms!orders![order details subform].name but if I changed to [Forms]![Orders]![Order Details Subform].[Form]![ProductID] this does not work (I get a null value).

Any idea?

Thank you
 
Have you tried using the expression builder?
 
Hi,

Try:

[Forms]![Orders]![Order Details Subform].[Form]![objectname]

Where objectname is the name of the textbox or other container name that holds the [name] field.

It seems that you aren't pulling [name] into the form itself. ???

ATB

Darrylle




Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top