beckie1234
Struggling Student
- Local time
- Today, 12:14
- Joined
- Mar 10, 2007
- Messages
- 94
I am using this code to force the population of a combo box on my form.
Private Sub Line_AfterUpdate()
Me.MachineCenter.Enabled = True
Me.MachineCenter = Empty
Me.MachineCenter.RowSource = " SELECT tblLine.lineName, tblLineMach.lineID, tblLineMach.machID, tblMachCent.machName" & _
" FROM tblMachCent INNER JOIN (tblLine INNER JOIN tblLineMach ON tblLine.lineID = tblLineMach.lineID)" & _
" WHERE tblLineMach.lineID" & _
" ON tblLine.lineID = tblLineMach.machID = tblMachCent.machID;"
End Sub
It is going from tblLine to tblLineMach to tblMachCent.
tblLineMach is a bridge table to reduce redundant data.
IT is having a problem with the From statement
Any Suggestions?????????
Private Sub Line_AfterUpdate()
Me.MachineCenter.Enabled = True
Me.MachineCenter = Empty
Me.MachineCenter.RowSource = " SELECT tblLine.lineName, tblLineMach.lineID, tblLineMach.machID, tblMachCent.machName" & _
" FROM tblMachCent INNER JOIN (tblLine INNER JOIN tblLineMach ON tblLine.lineID = tblLineMach.lineID)" & _
" WHERE tblLineMach.lineID" & _
" ON tblLine.lineID = tblLineMach.machID = tblMachCent.machID;"
End Sub
It is going from tblLine to tblLineMach to tblMachCent.
tblLineMach is a bridge table to reduce redundant data.
IT is having a problem with the From statement
Any Suggestions?????????