Problems removing Form/Subform link using LinkMasterFields

M

mail4danca

Hi,

I'm trying to remove a link between a form and a subform using the
following code:
Me!subform.LinkMasterFields = ""
Me!subform.LinkChildFields = ""

The result is the error code: You canceled the previous operation (run-
time error 2001).
Don't know what is wrong. I also tried:
Me!subform.LinkMasterFields = Null
Me!subform.LinkChildFields = Null
but that gave me a different error message.
FYI, I have access 2003.

Thanks,
Daniel
 
S

scubadiver

Have you tried breaking the link in "relationships view" or is that not an
option?
 
Top