Results 1 to 5 of 5
  1. #1
    ketangarg86 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    24

    Excel - Access questions

    Hi,

    I have a excel file which has a import button to upload all the data from the Excel file to Access database table. This is working. Now below are my new requirements. Could you please help.



    1. The push of the excel button should open the access file and the associated table. The table opened should only filter and show the files that were imported this time in edit view.
    2. Is there a way I can make sure that the user does not click the excel button twice and the data gets duplicated in the access database table.
    3. I have the excel template which the user will fill the data in and upload to access database table. Is there a way I can add a button to the excel template to reset the excel template to its original values before user started inputting his/her values.

    Thanks....

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    1. Excel can open the file (use hyperlink or Shell commands) but AFAIK cannot specify a table to open. Have Access open a form by default when the db opens. Code behind that form can open filtered query or form or report. Presuming a date of import is saved into record, use the current date as filter parameter.

    2. Have code set a value in worksheet cell, maybe the current date. Code checks the content of this cell. Should this import be a once-a-day event?

    3. Close spreadsheet without saving edits unless it is saved to a new name. If you want to 'reset' without having to close and reopen template, that could be complicated depending on nature of the edits.
    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
    ketangarg86 is offline Novice
    Windows 8 Access 2013
    Join Date
    Sep 2014
    Posts
    24
    I was finally able to do items 2 and 3. Still stuck on item 1.

    I read somewhere that I can open a table in access and show only the filtered (based on data in some columns of excel) set of data via a command button in excel. Could you please help me out.

    Would really appreciate your help.

    Thanks.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    By 'open a table in Access' - you mean Access query object? I have no idea how Excel can make an Access query object use values from Excel as filter criteria.

    If you can find the code and post for analysis, will look at.

    If you are really talking about Excel pulling filtered data onto spreadsheet - very different matter.
    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
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

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

Similar Threads

  1. Two MS Access questions
    By amir_9 in forum Access
    Replies: 4
    Last Post: 03-08-2012, 06:38 PM
  2. New to Access Questions
    By mneko in forum Access
    Replies: 2
    Last Post: 03-25-2011, 11:16 AM
  3. Some Access Questions
    By amegahed3 in forum Access
    Replies: 1
    Last Post: 04-11-2010, 12:24 AM
  4. HELP, Access questions.
    By brown in forum Access
    Replies: 0
    Last Post: 04-21-2009, 03:31 PM
  5. New to Access and have questions
    By MichelleFinn in forum Access
    Replies: 1
    Last Post: 04-04-2008, 06:30 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