skilche1
Registered User.
- Local time
- Yesterday, 23:58
- Joined
- Apr 29, 2003
- Messages
- 226
I am working a database for tracking re-cuts of our material. I am trying to use combo box cascading to sort through two criterias, the first is to choose a Department via a combo box that would in turn refresh the next combo box for Material Series. Once the Material Series has been selected then I would be able to select the color of that style material. I am figuring on using the same code structure for the Material Series combo box to filter the material color, but first I need to be able to sort the material series for a particular department.
When I try to select from the Department combo box, I get this error code: "Run-time '2450' error: Fabrication Re-Cut Database can't find the form 'sfrmDataEntry3' referred to in a macro expression or visual basic"
Here is the code I using:
Here is my Form layout:

Is there anyone that could help me through this?
Thank you in advance for your help.
When I try to select from the Department combo box, I get this error code: "Run-time '2450' error: Fabrication Re-Cut Database can't find the form 'sfrmDataEntry3' referred to in a macro expression or visual basic"
Here is the code I using:
Code:
Private Sub cbo1_AfterUpdate()
Dim sFabricEntry As String
sFabricEntry = "SELECT [tblMaterialSeries].[materialserie_Id], [tblMaterialSeries].[department_Id], [tblMaterialSeries].[Series] " & _
"FROM tblMaterialSeries " & _
"WHERE [department_Id] = " & Me.cbo1.Value
Forms!sfrmDataEntry3!CboMS.RowSource = sFabricEntry
Forms!sfrmDataEntry3!CboMS.Requery
End Sub
Here is my Form layout:

Is there anyone that could help me through this?
Thank you in advance for your help.