Originally Posted by
Welshgasman
There is no single quote after Personn?, just a double quote?
Methinks that is the single quote in the sql which is surrounded by 2 singles, one at the beginning, one at the end.
Gostap, did you test this before uploading? You want it to open a report but it isn't there?
I get a prompt for kund, which is generated by code that tries to set linkmaster and linkchild properties, but there is no bound form to link with the subform. Are you trying to build a search form and open a form or report based on the inputs? If so, why bother with the subform?
EDIT - if you need to see the subform records, then I think you're applying the recordsource and the requery to the wrong form. In cboBrukare event, if I leave in the code to set the linked fields to 'kund' I get an error. If I rem out the problem lines, the subform doesn't show the proper records. However, if I set the subform recordsource as in
Me.frmSubtblIncident.Form.RecordSource = strSQLSF
then that part works. I don't see the point in assigning a recordsource to your search form and requerying it (you're using Me, which refers to the main form in this case, not the subform).
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.