passing a value from a subform field to a query

G

Guest

I am trying to get a value from a subform to my query criteria. I have no
problem when referencing the main form - only subform. I think I have a
syntax problem.
I am using:
[forms].[formname].[form].[subformname].[fieldname]
 
G

Guest

Thanks Richard,
this reference is helpful - but it doesn't seem to address what i am trying
to do - or i don't know how to read it.

Richard said:
Hi David

Try this link, it shows how to reference subforms

http://www.mvps.org/access/forms/frm0031.htm

Richard

David said:
I am trying to get a value from a subform to my query criteria. I have no
problem when referencing the main form - only subform. I think I have a
syntax problem.
I am using:
[forms].[formname].[form].[subformname].[fieldname]
 
G

Guest

You mixed the order

Yours
[forms].[formname].[form].[subformname].[fieldname]

Should be
[forms]![formname]![subformname].Form![fieldname]
 
G

Guest

Thanks!

Ofer said:
You mixed the order

Yours
[forms].[formname].[form].[subformname].[fieldname]

Should be
[forms]![formname]![subformname].Form![fieldname]
--
\\// Live Long and Prosper \\//
BS"D


David said:
I am trying to get a value from a subform to my query criteria. I have no
problem when referencing the main form - only subform. I think I have a
syntax problem.
I am using:
[forms].[formname].[form].[subformname].[fieldname]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top