subform ref in query not working

H

hughess7

Hi all

I have made a form a subform and one of my queries has stopped working. I
know how to reference a subform and I have changed the syntax to this in
several places but one of my queries still won't work. I've used the same
syntax that works in another query so I am not sure why it won't work? I even
copied and pasted it so should be no typos! The differences are the control
is in the footer of the subform rather than the detail, it is an unbound
control and holds a date value.

This works ok in query criteria:
[forms]![frm Itinerary]![Itinerary].[form]![ItineraryID]

This doesn't work:
[forms]![frm Itinerary]![Itinerary].[form]![StartDate]

Access complains it does not recognise it as a valid field or reference, I
thought it would normally prompt for a parameter to be entered if it was
incorrect?

Kind Regards, Sue
 
H

hughess7

Sorry I've fixed it now so please ignore post! I had to enter the same
criteria in the query Parameters too - it worked then :)
 

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