Hi all,
In my program I have a combo box based on Primary Product Categories where by the user can select a value,
I want to fill a second combo box with fields based on the value selected in combo box (1) when i click a button
i thought I could just put a sql statement in the rowsource property of the second combo box like so:
Private Sub Update_Primary_Click()
Combo55.RowSourceType = "Table/Query"
Combo55.RowSource = " SELECT tblClassification.[Secondary Material Category] FROM tblClassification WHERE tblClassification.[Primary Material Category]= '" & Combo43.Value & "'"
End sub
This is all I have - do I need to use a record set or something - can someone show me how i would use the record set within my code as I am quite new to access and am confused.
Thank you for your help,
Confused Access Beginner
In my program I have a combo box based on Primary Product Categories where by the user can select a value,
I want to fill a second combo box with fields based on the value selected in combo box (1) when i click a button
i thought I could just put a sql statement in the rowsource property of the second combo box like so:
Private Sub Update_Primary_Click()
Combo55.RowSourceType = "Table/Query"
Combo55.RowSource = " SELECT tblClassification.[Secondary Material Category] FROM tblClassification WHERE tblClassification.[Primary Material Category]= '" & Combo43.Value & "'"
End sub
This is all I have - do I need to use a record set or something - can someone show me how i would use the record set within my code as I am quite new to access and am confused.
Thank you for your help,
Confused Access Beginner