Ask Experts Questions for FREE Help !
Ask
    ChaseWashington's Avatar
    ChaseWashington Posts: 3, Reputation: 1
    New Member
     
    #1

    Mar 14, 2007, 08:13 AM
    Can't get 2007 to work for me
    I barely know enough about Microsoft Access to get by and I created a program for work that keeps track of inventory and uses a visual basic code to pull up pictures in forms. This has always worked great on Access 2003 but since we upgraded to 2007 this no longer works. If anyone could please tell me what I need to do to this code to get it to work in 2007 I would greatly appreciate it.

    Option Compare Database

    Private Sub Form_Current()
    On Error Go to err_Form_Current

    If Not Me!txtPicture = "" Or Not IsNull(Me!txtPicture) Then
    Me!Picture.Picture = GetPathPart & Me!txtPicture
    Else
    Me!Picture.Picture = ""
    End If

    If Not Me!txtPicture2 = "" Or Not IsNull(Me!txtPicture2) Then
    Me!Picture2.Picture = GetPathPart & Me!txtPicture2
    Else
    Me!Picture2.Picture = ""
    End If

    If Not Me!txtPicture3 = "" Or Not IsNull(Me!txtPicture3) Then
    Me!Picture3.Picture = GetPathPart & Me!txtPicture3
    Else
    Me!Picture3.Picture = ""
    End If

    exit_Form_Current:
    Exit Sub

    err_Form_Current:
    MsgBox Err.Description
    Resume exit_Form_Current
    End Sub

    Private Sub Form_Open(Cancel As Integer)
    On Error GoTo Err_Form_Open

    If IsNull(Me!txtPicture) Or Me!txtPicture = "" Then
    ' do nothing
    Else
    Me!Picture.Picture = GetPathPart & Me!txtPicture
    End If

    If IsNull(Me!txtPicture2) Or Me!txtPicture2 = "" Then
    ' do nothing
    Else
    Me!Picture2.Picture = GetPathPart & Me!txtPicture2
    End If

    If IsNull(Me!txtPicture3) Or Me!txtPicture3 = "" Then
    ' do nothing
    Else
    Me!Picture3.Picture = GetPathPart & Me!txtPicture3
    End If


    Exit_Form_Open:
    Exit Sub

    Err_Form_Open:
    MsgBox Err.Description
    Resume Exit_Form_Open

    End Sub
    ChaseWashington's Avatar
    ChaseWashington Posts: 3, Reputation: 1
    New Member
     
    #2

    Mar 16, 2007, 09:30 AM
    I actually was able to solve my own question. I needed to set the file the photos are in as a trusted file.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Connect two different sheet in Excel 2007 [ 6 Answers ]

I am using Excel 2007. I want to put the calculation part or the detail figure in one sheet. And I want to put the relating pi chart or some other graphical representation on some other sheet. How I would relate these two sheets so that when I make any changes in the figure in the first sheet...

F1 to H1B in 2007 [ 1 Answers ]

Hi, I have recently graduated in Dec 2006.I am filing for my H1 this year 2007.I was told that there is a separate kota for F1 to H1b apart from the general H1B kota.But just a week ago,my employer says that the bill has been passed saying that the special kota for F1 to H1B was cancelled from...

What do I claim on my 2007 W-4? [ 1 Answers ]

Hello, I'm a single home owner in Baltimore, MD. I will make $55k this year with salaries and bonuses. I made $47k last year as stated on my W-2. I received back approximately $2,200 from Federal and $640 from the State. I claimed single and 1 in both categories I want to elect exemptions...

Printing in Outlook 2007 [ 0 Answers ]

Hi everybody, I hope many of you will be using Outlook 2007. What I have noticed that there is no option to print a set number of pages in it. For example I am communicating with someone on a particular subject and there are replies and replies which makes the mail 4-5 pages. There is no option to...

2007 ford mustang gt prem [ 3 Answers ]

Due to the unreliabilty of my 2002 nissan altima 2.5s, the sole reason I got this piece of sh.. I was thinking of purchasing a 2007 ford mustang gt. Does anyone have any experience with the reliabilty of this vehicle?


View more questions Search