Results 1 to 8 of 8
  1. #1
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164

    Linked Image Load error on form?? (Application.Path) via combo selection

    Hi,



    I'm really scratching my head with this one, what I am I doing wrong!

    I have actually achieved this a while ago with another DB, copied all the settings to the new DB and I can't get it to work?

    Click image for larger version. 

Name:	Form.jpg 
Views:	25 
Size:	57.9 KB 
ID:	27389Click image for larger version. 

Name:	On Load Error.jpg 
Views:	25 
Size:	40.1 KB 
ID:	27390Click image for larger version. 

Name:	Parameter Prompt.jpg 
Views:	25 
Size:	110.4 KB 
ID:	27391

    Any help I would be very grateful.

    Thanks

    Darren

  2. #2
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Quote Originally Posted by djspod View Post
    Hi,

    I'm really scratching my head with this one, what I am I doing wrong!

    I have actually achieved this a while ago with another DB, copied all the settings to the new DB and I can't get it to work?

    Click image for larger version. 

Name:	Form.jpg 
Views:	25 
Size:	57.9 KB 
ID:	27389Click image for larger version. 

Name:	On Load Error.jpg 
Views:	25 
Size:	40.1 KB 
ID:	27390Click image for larger version. 

Name:	Parameter Prompt.jpg 
Views:	25 
Size:	110.4 KB 
ID:	27391

    Any help I would be very grateful.

    Thanks

    Darren
    https://warburtons-my.sharepoint.com...IkA9hQRIZyP_nY


    https://warburtons-my.sharepoint.com...C-N1W-Kxi5n7IM

  3. #3
    AccessPower's Avatar
    AccessPower is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    165
    Try creating a Form Load event and leave it blank, on the main form/subform.

  4. #4
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    DB File and a small selection of image samples are available via the links posted above.

    I store the images in a folder called Images within the same folder as the database.

    Thanks

    Darren

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Sometimes the ON LOAD event is not the error. If there is no code in that Event, then its usu a hard coded property setting.
    do you have an image path set in a property?
    does the query pull images from the table?

  6. #6
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Code:
    Option Compare Database
    Private Sub cboLineNo_Change()
    Me.Image241.Picture = Me.cboLineCode.Column(4)
    End Sub
     
    Private Sub Form_Load()
    End Sub
    'Private Sub Form_Load()
    'Me.Image241.Picture = Me.cboLineCode.Column(4)
    'End Sub
    Just tried that and commented the original on load event out and inserted a blank onload

    parameter box pops up 'application.currentproject.path' ?

  7. #7
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Yes it does, In the Combo box LineCode query

    Image: [Application].[CurrentProject].[path] & "\Images" & [PhotoLoc]

    Am I doubling up on the code to mess it up, query and vba?

  8. #8
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Finally cracked this, I was missing the Control source for image
    cboLineNo [Column2]

    Thanks everyone for the input

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 12-26-2016, 08:57 AM
  2. Replies: 3
    Last Post: 04-10-2015, 10:26 PM
  3. Replies: 14
    Last Post: 03-31-2015, 05:20 PM
  4. change image based on combo box selection
    By cpotter in forum Database Design
    Replies: 11
    Last Post: 10-05-2013, 09:51 AM
  5. Replies: 5
    Last Post: 04-29-2013, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums