I've created a form where I wish the user to select machine # and Part # from drop down menus in 2 separate text boxes. Once the user selects these 2 parameters, i want to look up the 2 parameters from an excel sheet based upon the MAX or most recent date that the part ran on that specific machine. I then want to extract the other variables from that same row of data INTO additional text fields that i have setup within the form. It looks something like this:
Machine# Part#
____________________
Most recent date
Variant 1 variant 2 variant 3 etc....
User selects from dropdown in Machine#, then Part #. The data would return on the form for all the variants below the line.
Data is setup in columns in a spreadsheet. My form successfully shows the drop down menus within the combo boxes on the form. I need help to populate the data requested below the line noted above.
I think I need to do an index/match, but am unsure how to do this. Although I'd like the return to come straight from the datasheet, I can imagine that the indexed/matched data is copied to a supplemental sheet within the workbook, then the form reads from the corresponding cells within the supplemental sheet. I'm not sure how to get this started. Any I asking for too much from Excel? I prefer this to be VBA. I am a VBA neophite. Thanks in advance for any direction you can provide.
Machine# Part#
____________________
Most recent date
Variant 1 variant 2 variant 3 etc....
User selects from dropdown in Machine#, then Part #. The data would return on the form for all the variants below the line.
Data is setup in columns in a spreadsheet. My form successfully shows the drop down menus within the combo boxes on the form. I need help to populate the data requested below the line noted above.
I think I need to do an index/match, but am unsure how to do this. Although I'd like the return to come straight from the datasheet, I can imagine that the indexed/matched data is copied to a supplemental sheet within the workbook, then the form reads from the corresponding cells within the supplemental sheet. I'm not sure how to get this started. Any I asking for too much from Excel? I prefer this to be VBA. I am a VBA neophite. Thanks in advance for any direction you can provide.