Nov 21, 2008 #1 gord2 Programmer Jun 20, 2003 16 CA Hi all, In Access 2002, how to use program code to suppress the following error message: "Error #2448 with message: You can’t assign a value to this object." Thank you.
Hi all, In Access 2002, how to use program code to suppress the following error message: "Error #2448 with message: You can’t assign a value to this object." Thank you.
Nov 21, 2008 #2 PHV MIS Nov 8, 2002 53,708 FR Why not posting the code raising this error ? Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Nov 21, 2008 #3 davejam Technical User Jan 6, 2004 313 GB why do you need to suppress this, should you not work out what is causing it and fix!!! but to get around this error you could simply have the following within your sub private sub testCode() on error goto errHere '*** your code here *** exit sub errHere: if err.number <> 2448 then msgbox err.description end sub this will give you an error message for anything other than 2448 if you want it to continue with your code from the point it errorred you could always add a bit extra errHere: if err.number = 2448 then resume next else msgbox err.description end if why are you getting the error should be the first question you ask yourself?? daveJam even my shrink says its all your f#@/ing fault Upvote 0 Downvote
why do you need to suppress this, should you not work out what is causing it and fix!!! but to get around this error you could simply have the following within your sub private sub testCode() on error goto errHere '*** your code here *** exit sub errHere: if err.number <> 2448 then msgbox err.description end sub this will give you an error message for anything other than 2448 if you want it to continue with your code from the point it errorred you could always add a bit extra errHere: if err.number = 2448 then resume next else msgbox err.description end if why are you getting the error should be the first question you ask yourself?? daveJam even my shrink says its all your f#@/ing fault
Nov 21, 2008 #4 Remou Technical User Sep 30, 2002 13,030 BE It is generally better to come up with a way to avoid the error, if that is impossible, use an error handler (On Error GoTo ...) Upvote 0 Downvote
It is generally better to come up with a way to avoid the error, if that is impossible, use an error handler (On Error GoTo ...)
Nov 21, 2008 Thread starter #5 gord2 Programmer Jun 20, 2003 16 CA Thank you all the quick response. Will check the error handler. I am modifying someone's code temporarily. I just needed a quick fix. Upvote 0 Downvote
Thank you all the quick response. Will check the error handler. I am modifying someone's code temporarily. I just needed a quick fix.