Results 1 to 9 of 9
  1. #1
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35

    Insert a picture with macro

    I don't know if this is even possible, but i have a form where one of the objects is a picture. i want to be able to click a check box and have a macro automatically insert a picture on top of that picture. I want to still be able to see the picture underneath though.

    The original picture that is already there is a picture of a person, and i want to insert an X on top of the picture, and still see the person under it. is this possible?

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    What I would be tempted to do is to create a label that has an X as the caption and position this over the image and make it visible/invisible according the check box value.

    Don't think Access supports transparant images that well.

    David

  3. #3
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    Thank you, that will probably work. is there any way to make the font any bigger than 127? also, how do you make it visible/invisible? i set the label properties to visible: no, but i don't know what to do next. thank you for your help!

  4. #4
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    The font size is dependant on the font chosen, try a winding font.

    To make the label visible or invisible based on what the tick box value is , is a follows:

    Code:
     
    Private Sub ChkBox_Click()
    If Me.ChkBox = True Then
      Me.Label.Visible = True
    Else
      Me.Label.Visible = False
    End If
    End Sub

  5. #5
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    It worked!!! thank you so much

  6. #6
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    oops, actually when i tried it, it made the x show up on all the records, how can i limit it to the record i'm on?

  7. #7
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Something tells me you are using a continuous form? You may need to look at conditional formatting or using the on current event of the form

  8. #8
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    it's single form view. how do i use the on current?

  9. #9
    KWarzala is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Sep 2009
    Posts
    35
    i think i got it

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

Similar Threads

  1. ComboBox to update picture
    By ron727 in forum Programming
    Replies: 2
    Last Post: 05-21-2009, 06:29 PM
  2. Displaying a picture on a form
    By kydbmaster in forum Forms
    Replies: 4
    Last Post: 04-04-2009, 07:54 PM
  3. Compresse picture in the all reports
    By imedne in forum Reports
    Replies: 0
    Last Post: 03-21-2009, 05:29 AM
  4. Inserting a picture
    By Carenas in forum Forms
    Replies: 0
    Last Post: 01-03-2009, 05:09 PM
  5. Avoid jump to first data after insert new picture
    By gigolomoden in forum Programming
    Replies: 0
    Last Post: 08-04-2008, 10:08 PM

Tags for this Thread

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