Previous Thread

7/20/2006 8:05:02 AM    Error 2501 The openform wa canceled
I have a button in a from, which will open another form -- 
 
fdgInventoryStockSerSld with the following code: 
 
DoCmd.OpenForm "fdgInventoryStockSerSld", , , , , acDialog, Me!ItemNumber & 
 
"|" & Me!SerialNumber 
 
It works fine. But, if I change codes in the "fdgInventoryStockSerSld". the 
 
Open form will throw an error 2501. Even if I just added debug.print "Open" 
 
as the first line in the from_open event of "fdgInventoryStockSerSld". 
 
I need make some changes in the form which will be opened. Any idea what 
 
causes this error? 
 
-- 
 
Software Developer



7/21/2006 8:42:13 AM    Re: Error 2501 The openform wa canceled
Hi, 
 
check form's record source query and class module code, this can happen when 
 
record source query has error, or you cancel open event 
 
-- 
 
Best regards, 
 
___________ 
 
Alex Dybenko (MVP) 
 
http://alexdyb.blogspot.com 
 
http://www.PointLtd.com 
 
"Ming" <scastle88@msn.com> wrote in message 
 
news:B9E864F7-D30E-41E9-8694-CD4B75960E92@microsoft.com...