Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45

    Question PLease any idea how fix this problem with Quickscan in Access

    Hello I am trying to use the application name quickscan.exe from Burrotech. to allow me scan directly several pages in my data base but I cant do that the application take the name of the documents from my vba code. here is the code I use, any idea or some know how figure out this? Thanks in advance

    Private Sub Command493_Click()
    Dim Filepath As String
    Dim CName As String
    CName = Forms![ContractorsDBForm]![Text442]
    filename = Me.DocumentsName & ".pdf"
    Filepath = DLookup("[ContractorPath]", "querysetup") & CName & DLookup("[expr1]", "querysetup")


    Shell CurrentProject.Path & "\quickscan.exe resolution 100 pdf showprogress " & Filepath & "filename "
    End Sub


    when I use the following code, the application scan but put the documents just in the folder predetermined by code

    PrivateSub Button27_Click()
    Shell CurrentProject.Path &"\quickscan.exe resolution 100 pdf showprogress filename "& CurrentProject.Path &"\scan\ScanN¹""23.pdf "
    EndSub

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Did you expect this: [\scan\ScanN¹""23.pdf] to place a double quote in the file name?

  3. #3
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    Hello, ok that expect is to get the folder destination path from: FILEPATH string and the Document Name from FILENAME string

    thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    This code: Shell CurrentProject.Path & "\quickscan.exe resolution 100 pdf showprogress " & Filepath & "filename "
    ...has a better chance but it also has problems.
    Try:
    Shell CurrentProject.Path & "\quickscan.exe resolution 100 pdf showprogress " & Filepath & filename

  5. #5
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    thanks but nothing work. Do you know any other thing that allow me scan documents as pdf in ms access?

    thanks

  6. #6
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Change
    Code:
     Shell CurrentProject.
    Path 
    &
    "\quickscan.exe resolution 100 pdf showprogress filename "
    &
     CurrentProject
    .
    Path 
    &
    "\scan\ScanN¹"
    "23.pdf "
    "\quickscan.exe resolution 100 pdf showprogress filename "



    to

    Code:
     Debug.print CurrentProject.Path &
     &
     CurrentProject
    .
    Path 
    &
    "\scan\ScanN¹"
    "23.pdf
    What does output look like?

    Do you have a functional command line that you can execute yourself in the command prompt?

  7. #7
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    wow it murdered my code twice... replace Shell with Debug.Print

  8. #8
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    Hello, i changed to Debug.Print but noting happened. let me explain if I use the code:
    Code:
    Shell CurrentProject
    .
    Path
    &
    "\quickscan.exe resolution 100 pdf showprogress filename "
    &
    CurrentProject
    .
    Path
    &
    "\scan\ScanN¹"
    "23.pdf "


    the system scan ok, it create on same folder, a folder name scan and name the pdf document as
    ScanN¹23.pdf

    the problem is when I input the string values, it doesn't recognized the path or default filename




  9. #9
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Change your

    Shell CurrentProject.Path & "\quickscan.exe resolution 100 pdf showprogress filename " & CurrentProject.Path &"\scan\ScanN¹""23.pdf "

    to

    Debug.print
    CurrentProject.Path & "\quickscan.exe resolution 100 pdf showprogress filename " & CurrentProject.Path &"\scan\ScanN¹""23.pdf "

    Then in the Immediate Window (Ctrl + G), when you run that code. it should have something that outputs there. what is it?

  10. #10
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    Ok show this:

    C:\ClientsDB\SBPM\quickscan.exe resolution 100 pdf showprogress filename C:\ClientsDB\SBPM\scan\ScanN?"23.pdf

  11. #11
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Excellent, Press Windows Key + R

    Copy and paste that into it, or try pasting that into a command prompt. does it work? I imagine it breaks on the quote.

  12. #12
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    Yes it work. so?

  13. #13
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    I think there is another problem, following your recomendation i get the correct path using the STRINGS but the program keep puting the pdf on same folder were the .exe is

    no i got my parameters correct using the as strings:

    C:\ClientsDB\SBPM\quickscan.exe resolution 100 pdf showprogress filename C:\ClientsDB\SBPM\Alain, Tom\Alain, Tom Car Registration.pdf
    C:\ClientsDB\SBPM\quickscan.exe resolution 100 pdf showprogress filename C:\ClientsDB\SBPM\Alain, Tom\Alain, Tom Car Insurance.pdf

  14. #14
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    christ2000,

    Is it now working as you want?
    If it is outputting the file correctly, but in the wrong folder, you could run as second routine to move or copy the file to the folder you define. It would have to run after the "scan" had finished.

  15. #15
    christ2000 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    45
    hello, just work in part, form example file is just save as:
    Alain, and not as
    Alain, Tom Car Registration.pdf as debug print show
    thanks

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. No idea where to begin
    By Kkennedy in forum Database Design
    Replies: 2
    Last Post: 09-18-2017, 07:11 AM
  2. Replies: 4
    Last Post: 10-22-2016, 07:47 PM
  3. Access Conceptual Table Idea
    By NickWren in forum Access
    Replies: 8
    Last Post: 01-15-2016, 01:23 PM
  4. Replies: 1
    Last Post: 08-03-2012, 12:32 PM
  5. Can I use Access for this Idea?
    By sandiego5 in forum Access
    Replies: 5
    Last Post: 11-17-2011, 09:14 AM

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