Results 1 to 7 of 7
  1. #1
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199

    Calling Error

    I have a database on which if i click on the call button it takes the number as it was when the opening of the database, Please help:



    Private Sub Command54_Click()
    On Error GoTo Err_Dial_Click

    contact_number.SetFocus
    Call Shell("C:\Program Files\Excel Dialer Pro\phoneex.exe", vbNormalFocus)
    On Error GoTo Err_Dial_Click

    Exit_Dial_Click:
    Exit Sub
    Err_Dial_Click:
    MsgBox Err.Description
    Resume Exit_Dial_Click

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    I have no idea what you are doing. What is this procedure supposed to accomplish?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    June Long time...i hve been away from project

    on ckicking on phone button which i have made, calls exe which needs to call for the specific person contact number, but it does not tahes any value for calling even i have setup focus on the current contact number. I am posting the db also so u can know what are other doubts left.MDB.zip

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    Sorry, I don't have phoneex.exe so can't really test. However, I don't see how just setting focus to a textbox will pass phone number to the phoneex program.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    Then what way i can keep current contact number in memory, lets just not take phone exe normal calling through modem does also requires same condition. as i am not getting particular all over the forum.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    I don't know any way Access can pass a value directly to a program opened by Shell. The opened program is not an object that Access can manipulate.

    Access can copy text to the Windows clipboard but I don't know how you could have phoneex automatically retrieve the text from the clipboard.

    I Binged for phoneex.exe but did not get any hits.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    mrojas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    I think what you need to do is grab the phone number from wherever is it, form, table, etc. and pass this to the Phoneexe application.
    Simply shifting the focus to a field is not sufficient. Do something with its value, such as store in a variable, pass this variable to your phone app.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calling and exe from code
    By drunkenneo in forum Access
    Replies: 1
    Last Post: 09-03-2013, 05:45 AM
  2. Calling previous value to add with new value
    By 2skannan in forum Programming
    Replies: 3
    Last Post: 01-23-2013, 11:33 PM
  3. Replies: 3
    Last Post: 05-02-2011, 12:08 PM
  4. calling function
    By ManvinderKaur in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 10:53 PM
  5. Syntax Error while calling sub: Expected: =
    By cowboy in forum Programming
    Replies: 3
    Last Post: 07-12-2010, 02:21 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
  •  
Other Forums: Microsoft Office Forums