Results 1 to 3 of 3

Thread: VBA for Access-->GetOpenFileMethod??? (HEEEEEELLLLP!)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Avatarp's Avatar
    Join Date
    Sep 2002
    Location
    Calgary
    Posts
    826

    Unhappy VBA for Access-->GetOpenFileMethod??? (HEEEEEELLLLP!)

    Access XP:

    I am trying to get the file open dialog box to work in this function.

    Code:
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Opens the Open dialog box.
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Private Function MSA_GetOpenFileName(msaof As MSA_OPENFILENAME) As Integer
        Dim of As OPENFILENAME
        Dim intRet As Integer
    
        MSAOF_to_OF msaof, of
        intRet = GetOpenFileName(of)
        intRet = 1
    '    intRet = GetFileName(of)
        If intRet Then
            OF_to_MSAOF of, msaof
        End If
        MSA_GetOpenFileName = intRet
    
    End Function
    The MSAOF_to_OF function call sets the variable of. These can be found in the screen shot I attached. Please any help would be appreciated.
    Attached Images Attached Images  
    Last edited by Avatarp; Mar 21st, 2003 at 01:27 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
  •  



Click Here to Expand Forum to Full Width