P
PennyB
I have a search page that looks up projects from a query. The query has two
tables the Project table has the job number and the Permit table has the
permit number.
What I would like to do is once a user narrows the search to the project
they want is to click on a command button that takes them to the main form
which has the subform on a tab to the project and permit number they want.
I can get it to come back to the Job Number with out a problem with the
following:
stDocName = "frmProjectsMain"
stLinkCriteria = "[JobNumber]=" & "'" & Me![txtJobNumber] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
But when I try to add the subform's permit task number it stops working.
Any ideas?
Thanks.
tables the Project table has the job number and the Permit table has the
permit number.
What I would like to do is once a user narrows the search to the project
they want is to click on a command button that takes them to the main form
which has the subform on a tab to the project and permit number they want.
I can get it to come back to the Job Number with out a problem with the
following:
stDocName = "frmProjectsMain"
stLinkCriteria = "[JobNumber]=" & "'" & Me![txtJobNumber] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
But when I try to add the subform's permit task number it stops working.
Any ideas?
Thanks.