Hi
I am lookoing up a record in a table with
s = DLookup("[ShareNumbersTo]", "CertificateDetails", "[ShareNumbersTo]=(Select Max([ShareNumbersTo]) from [CertificateDetails])")
and this works ok to a point but I want the largest share number for only the selected type of share. So If I have ShareType = "O", I want the largest share number for shares of [Tpye] O. I can't get this work when I try to inculde "[Type] = ShareType" in the above statement. Any sugestions would be great.
I am lookoing up a record in a table with
s = DLookup("[ShareNumbersTo]", "CertificateDetails", "[ShareNumbersTo]=(Select Max([ShareNumbersTo]) from [CertificateDetails])")
and this works ok to a point but I want the largest share number for only the selected type of share. So If I have ShareType = "O", I want the largest share number for shares of [Tpye] O. I can't get this work when I try to inculde "[Type] = ShareType" in the above statement. Any sugestions would be great.