Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2006, 02:45 PM
Registered User
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error 2448

Hi,

I want to add a picture to a report that changes with every record!
I copied the function from that help: http://support.microsoft.com/default...23120121120120
When I open up the report i get the error 2448: you assign a value to this object!

Can anyone help me???

Julie

 
Old March 6th, 2006, 02:52 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Julie,

Just a couple of questions...

What version of Access are you using?

What line appears to be generating the error?
 - If you are not sure on this last one, set a break point at the beginning of the module and then step through it until it throws the error.

It appears that it is not able to set a variable to something.

Mike

Mike
EchoVue.com
 
Old March 6th, 2006, 03:14 PM
Registered User
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

my access version is 2002! The error appears in that line:
    Me!imagepath = DisplayImage(Me!Imageframe, Me!imagepath)

Julie

 
Old April 12th, 2006, 11:25 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too am experiencing error 2448. I have a subform embedded in a master form. When I decouple and use just the subform the error does not appear. If I click ok when the error appears, then data entry proceeds normally with no apparent problem. My first thought was that it was field related but I removed the field that was apparently causing the problem but the same error occurred with the next field on the form. Here are some factoids about this problem
1. It occurs only when the first record is entered in a series of entries. After the first time in a session it does not appear again.
2. It occurs whether using CTRL+ or add record button.
3. Removing field formatting doesn't make a difference.
4. Master and child fields are linked
5. It occurs whether I remove any event code or not.
6. I can get by with ignoring the error with
   Private Sub Form_Error(DataErr As Integer, Response As Integer)
       If DataErr = 2448 Then Response = False
   End Sub
with no apparent ill effect on the data.

Still scratching my head!


Rick Hurst
Webs 4 Everyone
http://www.webs4everyone.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Run time error 2448 ghall202 Access VBA 4 March 26th, 2007 02:26 PM
error 2448: esj28 Access 1 April 20th, 2004 11:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.