Results 1 to 6 of 6
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Logo changing in form not going thru design view


    I have created a database with a form containing a logo from my current company. The database can be used in other companies.

    How can I change the logo without going to the design view.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Put the logo in a table. I have a tConfig table and a OLE field. Paste the logo here.
    then different companies can have their logo in there.

  3. #3
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    You can change the logo on many events such as when you open the form of when a user clicks a button. Or even when a record open that is related to a specific company. The possability's are limetless.

    Just insert your logo's in the forms design view, you can place them over each other if desired.

    For example the on_click event of a button :

    Code:
    me.YourLogoName1.visible = true
    me.YourLogoName2.visible = false

  4. #4
    keviny04 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Apr 2015
    Posts
    128
    Quote Originally Posted by trident View Post
    I have created a database with a form containing a logo from my current company. The database can be used in other companies.

    How can I change the logo without going to the design view.
    If you use an image control on the form for your logo, you can just set the image control's Picture property to the path of the picture file of the logo. You can do this programmatically and change the logo based on the condition(s) you desire:

    Me![image control].Picture = "C:\My Pictures\logo1.jpg"

    If Me![company name]="ABC" Then Me![image control].Picture = "C:\My Pictures\logo2.jpg"

    Me![image control].Picture = "" 'No picture

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Image control has a ControlSource property. The control can be bound to attachment field of table or have an expression that concatenates file path string and field that contains image name or set programmatically to reference path of external file. I have never used the Picture property. It would have been necessary to use it in Access 2003 and earlier because ControlSource property was added with Access 2007.

    I have never used OLEObject field type and control for dynamic display of images, tried but gave issues. Have better results with attachment field and Image control.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141
    Thank you guys for the replies, I will try all.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-09-2014, 09:03 AM
  2. changing logo on database
    By joshynaresh in forum Access
    Replies: 5
    Last Post: 03-23-2014, 02:33 AM
  3. Replies: 6
    Last Post: 03-08-2014, 12:47 PM
  4. Replies: 5
    Last Post: 12-03-2013, 01:25 PM
  5. Replies: 8
    Last Post: 04-29-2013, 11:23 AM

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