CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 1999
    Posts
    6

    Using the MID function in MS Access

    I've created an Access Database that uses the MID and FORMAT functions from Visual Basic. I have now found that the database wont work on a computer that doesn't have Visual Basic installed. Is there a way I can find out which files are needed for these functions?


  2. #2
    Join Date
    Sep 2001
    Location
    Elmshorn, Germany
    Posts
    8

    Re: Using the MID function in MS Access

    Hi,
    these Functions are part of the VBA-Library.
    This Lib is installed with Access. There must be another problem!

    KIK

  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: Using the MID function in MS Access

    Maybe, but I can't think what else it could be. When I compile the code in Access without having VB installed it doesn't recognise MID, MID$ and FORMAT. If I then install VB it works fine. I looked at the help file for MID and the title of the page was Visual Basic reference, which is what made me think they were VB methods not VBA methods.




  4. #4
    Join Date
    Sep 2001
    Location
    Elmshorn, Germany
    Posts
    8

    Re: Using the MID function in MS Access

    in the code-window, you can write the library before the function:
    if you try, you will see, that vba is the lib:
    vba.mid()
    vba is a module of access. you have not to install it.

    KIK

  5. #5
    Join Date
    May 1999
    Posts
    6

    Re: Using the MID function in MS Access

    Me thinks your right,

    Maybe is should try setting InstallShield to install the Access 97 object.

    Thanks a lot for your help.


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

Featured