I have a form that I would like to open based on a user input on another form. The problem is I need to open the other form not only on a specific record but the combo and lists boxes have to be activated based on that record.
Form A (MDEP Form) is where users input data and then Form B (Score Manager) is where users score projects.
I want users to input new project into Form A (Got that part). I have the Score Manager Set up. Right now the Score Manager opens on Record 1 (not 90021) but moves to the right Project Type (on the combo; Me.txtResourceFramework.Value) and MDEP ID (on the list; Me.txtMDEPID.Value box) but does not move the entire form to the specific record (90021 as an example).
Here is my code. Can someone help?
Thanks Greg
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Scoring: Score Manager"
stLinkCriteria = "[MDEP/Capability ID] = " & 90021
DoCmd.OpenForm stDocName, acNormal, , , , acWindowNormal, stLinkCriteria
Forms![Scoring: Score Manager]!ComboProjectType = Me.txtResourceFramework.Value
Forms![Scoring: Score Manager]!ComboProjectType.Requery
Forms![Scoring: Score Manager]!lstMDEPID = Me.txtMDEPID.Value
Forms![Scoring: Score Manager]!lstMDEPID.Requery
Form A (MDEP Form) is where users input data and then Form B (Score Manager) is where users score projects.
I want users to input new project into Form A (Got that part). I have the Score Manager Set up. Right now the Score Manager opens on Record 1 (not 90021) but moves to the right Project Type (on the combo; Me.txtResourceFramework.Value) and MDEP ID (on the list; Me.txtMDEPID.Value box) but does not move the entire form to the specific record (90021 as an example).
Here is my code. Can someone help?
Thanks Greg
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Scoring: Score Manager"
stLinkCriteria = "[MDEP/Capability ID] = " & 90021
DoCmd.OpenForm stDocName, acNormal, , , , acWindowNormal, stLinkCriteria
Forms![Scoring: Score Manager]!ComboProjectType = Me.txtResourceFramework.Value
Forms![Scoring: Score Manager]!ComboProjectType.Requery
Forms![Scoring: Score Manager]!lstMDEPID = Me.txtMDEPID.Value
Forms![Scoring: Score Manager]!lstMDEPID.Requery