P
Pam
I am having a problem with the following code:
Private Sub Combo32_Click()
If Me.PumpType = "MANUFACTURING" Then
DoCmd.OpenForm "fGeneralInfoManufacturing", , , "JobNumber=" &
Me!Combo32.Value
Else
DoCmd.OpenForm "fGeneralInfo", , , "JobNumber=" & Me!Combo32.Value
End If
End Sub
Combo32 is an unbound combo box on the fSwitchboard form. The following is
the Record Source for form "fSwitchboard":
SELECT qJobList.JobAssignment, qJobList.MachineAssignment,
qJobList.PumpType, qJobList.JobNumber, qJobList.CustomerName,
qJobList.ReceiptOfGoods, qJobList.PriceQuote, qJobList.ReadyToRepair,
qJobList.Completed, qJobList.HotJob, qJobList.MachineStart,
qJobList.MachineFinish FROM qJobList WHERE qJobList.JobAssignment='TechName"
Or qJobList.MachineAssignment='TechName';
As it stands now, the PumpType for the first job number in the list is what
is determining which form opens.
I would really appreciate any help with this!
Thanks,
Pam
Private Sub Combo32_Click()
If Me.PumpType = "MANUFACTURING" Then
DoCmd.OpenForm "fGeneralInfoManufacturing", , , "JobNumber=" &
Me!Combo32.Value
Else
DoCmd.OpenForm "fGeneralInfo", , , "JobNumber=" & Me!Combo32.Value
End If
End Sub
Combo32 is an unbound combo box on the fSwitchboard form. The following is
the Record Source for form "fSwitchboard":
SELECT qJobList.JobAssignment, qJobList.MachineAssignment,
qJobList.PumpType, qJobList.JobNumber, qJobList.CustomerName,
qJobList.ReceiptOfGoods, qJobList.PriceQuote, qJobList.ReadyToRepair,
qJobList.Completed, qJobList.HotJob, qJobList.MachineStart,
qJobList.MachineFinish FROM qJobList WHERE qJobList.JobAssignment='TechName"
Or qJobList.MachineAssignment='TechName';
As it stands now, the PumpType for the first job number in the list is what
is determining which form opens.
I would really appreciate any help with this!
Thanks,
Pam