Querying using value from a subform

jonomac

Registered User.
Local time
Today, 21:37
Joined
Jul 6, 2005
Messages
22
I need to take a value from a subform and use it in a query but I don't seem to be able to come up with the correct criteria in the query....

I have so far tried:
[Forms].[frm_Matching].[SubMatching].[txtSingleFixedPayer]
[Forms].[frm_Matching].[SubMatching].[form].[txtSingleFixedPayer]

[Forms].[sub_Matching_single].[txtSingleFixedPayer]
[Forms].[sub_Matching_single].[form].[txtSingleFixedPayer]

[Forms].[frm_matching].[sub_matching_single].[txtsinglefixedpayer]
[Forms].[frm_matching].[sub_matching_single].[Form].[txtsinglefixedpayer]

And probably a load of other versions of the above.... can anyone help out possibly?

The following pulls back the value in code but isn't accepted in the query as a valid criteria:

Forms("frm_Matching").[SubMatching].[Form].[txtSingleFixedPayer]
 
Last edited:
OK, I've just realised I was attempting to build the query so that I could use the sql it produced in my code.... and the code version of it pulls back the correct value anyway so I've ditched bothering with the query anymore altogether, hurrah!
 

Users who are viewing this thread

Back
Top Bottom