Hi,
I have a continous form (named "Search"), for which I have shortcut menu to open another form. Code for that is :
Code:
DoCmd.OpenForm "Results", , , "ID_Results=" & Forms![Search]![Search_Subform].Form![ID_Search]
This code opens form Results and displays records, that are linked by one to many relationship, via ID.
What I want on this form (Results) is to show record with same ID from "Search" form.
So basically, I want a Lookup in textboxes, that will show for what record of "Search" form I'm watching Results.
I tried his :
Code:
=DLookUp("Name";"Search";"ID_Search= Search.ID_Search")
This code doesn't produce any errors, but It shows only first record all the time. I want Lookup to show record I selected in "Search" form. Everything else I tried, produced errors.
Can somebody tell me what I'm doing wrong ??