I want to create two linked subforms on a form. For this I need to set query parameter into the record source of the second subform like this:
select col1, col2
from my_table
where col3=[Forms]![MyForm]![subform1]![MyField]
This works with .accdb file, but not with Access Project (.adp file), connected to SQL Server. There I get "Invalid syntax near '!'". Tried many other ways, but could not make it to work.