Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Visual Basic / Access Xp help

Visual Basic / Access Xp help

Scheduled Pinned Locked Moved Visual Basic
helpdatabasequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hemroids
    wrote on last edited by
    #1

    Hi there. I'm very new at VB programing, but got a good background in Access. I have been trying to link pictures to a access database without actually embedding them, and have succeeded! But now I'm battling to find code or control dialog to search for files (like a browser) to specify a file path. I have tried MS common dialog control, but it gives me an error to register and license the package, no matter what I try. (I did buy the original Office XP Pro X| ) Can anyone please help or any suggestions?

    M 1 Reply Last reply
    0
    • H hemroids

      Hi there. I'm very new at VB programing, but got a good background in Access. I have been trying to link pictures to a access database without actually embedding them, and have succeeded! But now I'm battling to find code or control dialog to search for files (like a browser) to specify a file path. I have tried MS common dialog control, but it gives me an error to register and license the package, no matter what I try. (I did buy the original Office XP Pro X| ) Can anyone please help or any suggestions?

      M Offline
      M Offline
      Martin Ziacek
      wrote on last edited by
      #2

      **Option Explicit

      Declare Function** GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
      Declare Function
      GetSaveFileName Lib "comdlg32.dll" Alias "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) **As Long

      Type** MSA_OPENFILENAME
      ' Filter string used for the File Open dialog filters.
      ' Use MSA_CreateFilterString() to create this.
      ' Default = All Files, *.* strFilter As String

      ' Initial Filter to display.
      ' Default = 1.    lngFilterIndex **As Long**
      
      ' Initial directory for the dialog to open in.
      ' Default = Current working directory.    strInitialDir **As String**
      
      ' Initial file name to populate the dialog with.
      ' Default = ".    strInitialFile **As String**
      strDialogTitle **As String**
      
      ' Default extension to append to file if user didn't specify one.
      ' Default = System Values (Open File, Save File).    strDefaultExtension **As String**
      
      ' Flags (see constant list) to be used.
      ' Default = no flags.    lngFlags **As Long**
      
      ' Full path of file picked.  On OpenFile, if the user picks a
      ' nonexistent file, only the text in the 'File Name' box is returned.    strFullPathReturned **As String**
      
      ' File name of file picked.    strFileNameReturned<
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups