I've set up the code for a DLookup into a specific table which fills in a label on one of my forms as:
Me.LSL.Caption = DLookup("[SMD-pHLSL]", "SM Developer-PM Log", "[SMD-PMType]='ControlLimits'")
which fills in the value upon load. How would I change the code so that it looks up the most recent value entered into the table (for SMD-pHLSL). Right now I am using a generic row I typed into the table (ControlLimits), which I don't really want in there. I would like it to look up an entry for SMD-PMType, which will be common, and look up the most recent entry under that "heading". Hope that makes sense.
Thanks
Me.LSL.Caption = DLookup("[SMD-pHLSL]", "SM Developer-PM Log", "[SMD-PMType]='ControlLimits'")
which fills in the value upon load. How would I change the code so that it looks up the most recent value entered into the table (for SMD-pHLSL). Right now I am using a generic row I typed into the table (ControlLimits), which I don't really want in there. I would like it to look up an entry for SMD-PMType, which will be common, and look up the most recent entry under that "heading". Hope that makes sense.
Thanks