Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Access 2007 form problem...


(!)

yeenkuek30's Avatar
yeenkuek30 yeenkuek30 is offline
Junior Member with 2 posts.
THREAD STARTER
 
Join Date: Nov 2008
26-Nov-2008, 04:16 AM #1
Access 2007 form problem...
hi i created a simple form with typical text field and an image (which i hope will change accordingly to the id). it works okay till i added:

Private Sub Form_Current()
End Sub

in VBA, and this is the popup error i get:

"the expression on current u entered as the event property setting produced the following error: a problem occured while microsoft aoffice access was communicating with the OLE server or activex control."

with further explanation:
"This error occurs when an event has failed to run because Microsoft Office Access cannot evaluate the location of the logic for the event. For example, if the OnOpen property of a form is set to =[Field], this error occurs because Access expects a macro or event name to run when the event is fired."

but i cant figure out how to solve.

while my intention is to set something like this:

Private Sub Form_Current()
Me.ImgCtrl.Picture = "C:\images\" + Me.specialid + ".jpg"
End Sub

If i remove the oncurrent, everything works okay except the image part.

pls helppppppppppp...

Last edited by yeenkuek30; 26-Nov-2008 at 04:40 AM..
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,649 posts.
 
Join Date: Mar 2005
Location: UK
26-Nov-2008, 06:52 AM #2
Keep the Image Field, but delete the reference to the Image Source, which will taken care of by your VBA.
I have posted quite a few Access 2000 databases that use that principle, here is one of them, see Post #18
http://forums.techguy.org/business-a...atabase-2.html

and another here, also Post #18
http://forums.techguy.org/business-a...se-help-2.html
__________________
OBP
I do not give up easily
yeenkuek30's Avatar
yeenkuek30 yeenkuek30 is offline
Junior Member with 2 posts.
THREAD STARTER
 
Join Date: Nov 2008
26-Nov-2008, 10:40 AM #3
hi OBP,

nice to c your reply. i read thru the post and know tat u have helped a lot of ppl with your experience.

even without the image itself in the form, the error i msg remains the same and i start to wonder if it's got something to do with the setting??

ps: i followed everything suggested in your previous posts n it still doenst work out. :-( i know it's weird cuz got stuck even to hav
Private Sub Form_Current()
End Sub

working in my VB.

Last edited by yeenkuek30; 26-Nov-2008 at 10:46 AM..
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,649 posts.
 
Join Date: Mar 2005
Location: UK
27-Nov-2008, 06:43 AM #4
This may be an Access 2007/Access 2003 VBA problem. Try Compacting & repairing it.
If that doesn't help try Converting the database to Access 2003 format.
If that still has the problem I would suggest that you create a Blank Access 2003 and Import everything from the Converted one in to it and try that.
If that doesn't work either, remove any "Personal" data from the New Access 2003 version, Compact & Repair it, Zip it and post it on here.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑