Sub Forms based on a query.

blues763

Registered User.
Local time
Today, 10:44
Joined
Jun 30, 2014
Messages
17
I have a search form on which I have 2 subforms that bring back search results based on a combo box selection on top of the page. Search results come back fine but I have button on both of these sub forms that needs to open record based on the subform values.

Code is

DoCmd.OpenForm "frmVacancyApproval_S1", , , "[Job_Ref]=" & Me.Job_Ref

but when I click on the button parametre box would appear asking to enter "Job_Ref" twice

Please help
 
Job_Ref doesn't exist in the query or table that's linked to the form "frmVacancyApproval_S1"
 

Users who are viewing this thread

Back
Top Bottom