Theseekers
Technical User
Hi folk,
I ran into this little problem and could not see the light at the end of the tunnel and may be some kind soul here lend me lighter so I can get out of this....

Here is my problem:
I have a data entry form that was called from another the form. Upon open this data entry form, I grabbed the id from the calling form and pop it in a bounded control text box (no problem). I would like also to use this value to get extra data from another table. So I use the DLOOKup function to get the extra data. Somehow my code give me the famous RT 2001 - you canceled previous operation..
Here is my code (and I put it in the Form open event)
Can anyone offer me an explaination as to the above statement produce this RT error????
As always Thank you for your time and input.
I ran into this little problem and could not see the light at the end of the tunnel and may be some kind soul here lend me lighter so I can get out of this....
Here is my problem:
I have a data entry form that was called from another the form. Upon open this data entry form, I grabbed the id from the calling form and pop it in a bounded control text box (no problem). I would like also to use this value to get extra data from another table. So I use the DLOOKup function to get the extra data. Somehow my code give me the famous RT 2001 - you canceled previous operation..
Here is my code (and I put it in the Form open event)
Code:
If (not(isnull(me.openArgs)) then
me.TxtSDANID.defaultvalue = cint(me.openargs)
me.txtage = dlookup("Age", "TblSubject", "SubjID = " & me.TxtSDANID) <======== The bus stops here... HELP !!!
endif
Can anyone offer me an explaination as to the above statement produce this RT error????
As always Thank you for your time and input.