Hotwheels59
Registered User.
- Local time
- Yesterday, 18:47
- Joined
- Oct 12, 2009
- Messages
- 13
I am trying to use a DoCmd.OpenQuery command to open a query referencing an employee ID from a form. Opening a report and using a macro, the "Where Condition" code looks like this:
[Forms]![frmMainInput]![frmSummary_Subform].[Form]![Job Code]=[qryCheckResponsibilities]![Job Code].
I have a module that looks like this:
Private Sub Command50_Click()
DoCmd.OpenQuery "qryCheckResponsibilities", acViewNormal, acEdit
End Sub
How can I get the VB code to pull the correct data based on the employee ID in the frmSummary_Subform?
Any help is much appreciated.
[Forms]![frmMainInput]![frmSummary_Subform].[Form]![Job Code]=[qryCheckResponsibilities]![Job Code].
I have a module that looks like this:
Private Sub Command50_Click()
DoCmd.OpenQuery "qryCheckResponsibilities", acViewNormal, acEdit
End Sub
How can I get the VB code to pull the correct data based on the employee ID in the frmSummary_Subform?
Any help is much appreciated.