Okay, I gave your suggestion a try, but I'm not an expert on code and I may have interpreted your instructions incorrectly.
Further, I don't mean to make it harder for you to help me, but I have changed the names in the code below to match my fields:
My Form:
ComboBox1 = cboFunc
Combobox2 = cboDescription
Combobox3 = cboSubdescrip
The Underlying Table:
Field1 = Function
Field2 = Description
Field3 = SubDescrip
The cboFunc is working independently and my selections are saving to the Function field, BUT when I make a selection in the Description combobox, it changes in all records, but saves only to that record in the underlying table. Same problem with the third combobox. I hope you can help me! I just need to resolve this problem and my year's work on this database will not be a waste. Crossing my fingers...
Following is the code as I have updated it with your suggestion:
Private Sub cboFunc_AfterUpdate()
Dim strSQL As String
Dim strSQLSF As String
cboDescription = Null
cboSubdescrip = Null
strSQL = "SELECT DISTINCT tblDemo.Description FROM tblDemo "
strSQL = strSQL & " WHERE tblDemo.Function = '" & cboFunc & "'"
strSQL = strSQL & " ORDER BY tblDemo.Description;"
cboDescription.RowSource = strSQL
strSQLSF = "SELECT * FROM tblDemo "
strSQLSF = strSQLSF & " WHERE tblDemo.Description = '" & cboDescription & "'"
Me!Function = Me!cboFunc
End Sub
Private Sub cboDescription_AfterUpdate()
Dim strSQL As String
Dim strSQLSF As String
cboSubdescrip = Null
strSQL = "SELECT DISTINCT tblDemo.SubDescrip FROM tblDemo "
strSQL = strSQL & " WHERE tblDemo.Description = '" & cboDescription & "'"
cboSubdescrip.RowSource = strSQL
strSQLSF = "SELECT * FROM tblDemo "
strSQLSF = strSQLSF & " WHERE tblDemo.Description = '" & cboDescription & "'"
Me!Description = Me!cboDescription
End Sub
Private Sub cboSubdescrip_AfterUpdate()
Dim strSQL As String
Dim strSQLSF As String
strSQL = "SELECT DISTINCT tblDemo.SubDescrip FROM tblDemo "
strSQL = strSQL & " WHERE tblDemo.Description = '" & cboDescription & "'"
strSQLSF = "SELECT * FROM tblDemo "
strSQLSF = strSQLSF & " WHERE tblDemo.Description = '" & cboDescription & "'"
Me!SubDescrip = Me!cboSubdescrip
End Sub
THANKS!!!!