G
Guest
I have a form that is connected by ProjectID. Under Projects, we have tasks.
On this form, there is a command button that allows you to look at the tasks
that are under the specific project. On this subform, is a command button to
add another task to that particular project. I can get the form to come up
as a blank form
but not with the ProjectID that it is to be added to. The user will not have
the option to choose which ProjectID to add it to, I want it to be automatic
from the previous form. The code is as follows:
Dim stLinkCriteria As String
DoCmd.GoToRecord acForm, Me.Name, acNewRec
stLinkCriteria = "[ProjectID]=" & Me!ProjectID
On this form, there is a command button that allows you to look at the tasks
that are under the specific project. On this subform, is a command button to
add another task to that particular project. I can get the form to come up
as a blank form
but not with the ProjectID that it is to be added to. The user will not have
the option to choose which ProjectID to add it to, I want it to be automatic
from the previous form. The code is as follows:
Dim stLinkCriteria As String
DoCmd.GoToRecord acForm, Me.Name, acNewRec
stLinkCriteria = "[ProjectID]=" & Me!ProjectID