SpaceCoastLife
asked on
MS Access 2013 Subform Search
As the title implies, I have a main form and a subform i.e frmMain, frmMain_sf with a Combo Box on the frmMain listing all of the records listed in frmMain_sf. The record source for the subform is a stored query with no record source for frmMain.
I want to select a value in the Combo Box and go to that record on the subform. I would also like to highlight the record found in some manor i.e. different row color.
Help anyone?
I want to select a value in the Combo Box and go to that record on the subform. I would also like to highlight the record found in some manor i.e. different row color.
Help anyone?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Search works great. Is there a way to change the row color of the selected row?
Did you miss my second posting?
ASKER
I did, sorry. Let me check it out
ASKER
Pretty clever! Thanks for the help.
Your welcome.
Open in new window
If the UniqueKeyField in is a Numeric data type, change the FindFirst line to this instead:
.FindFirst "[UniqueKeyField] = " & Me.cmbNameOfComboBox
Ron