Hi , all
wonder if any one can point me in the right direction to be honest not even sure i'm using the correct function.
I'm currently trying to check if a value exist in a field in my sub form by taking the value i have entered in a text box on my main form this is were i am so far.....
this does work but checks the every record in tbl2 table & field= linkcount if the value exists. Now here comes the but.... how do i get it only check the records displaying on the sub form that are link to the main form record i have currently open
Use full Info Maybe ?
My main form is linked to a sub form by Main form = ID and Subform = LinkID so i can store multiple records in the sub form under one record in my main form
any help much appreciated
Shane
wonder if any one can point me in the right direction to be honest not even sure i'm using the correct function.

I'm currently trying to check if a value exist in a field in my sub form by taking the value i have entered in a text box on my main form this is were i am so far.....
Code:
If IsNull(DLookup("linkcount", "tbl2", "[linkcount] = [forms]![test form]![History record Count]"))

Use full Info Maybe ?
My main form is linked to a sub form by Main form = ID and Subform = LinkID so i can store multiple records in the sub form under one record in my main form
any help much appreciated
Shane
Last edited: