+ Reply to Thread
Results 1 to 6 of 6

Streamlining the process?

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Streamlining the process?

    Hey, I've created an access project and I am trying to streamline the process.

    Basically in my project, I import info from a text file, run queries and then I get a simple results table. Now how do I set it up where it is easy to repeat the process so I can do this process with saved settings or options so I won't have to keep on manually setting up the queries and tables each time and so others can do the same?

    I know excel has something similar but I can not figure out how you can do it in access unless you're not able. Thanks.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Streamlining the process?

    You could build a form and place command buttons on the form. Each of the command buttons would have VBA code behind them to automate the manual steps you wish to execute. Attached is an example of one that I created many years ago but will give you an idea of how it works. Be sure to open the form in design view and look at the codes behind the buttons.
    Attached Files Attached Files
    Last edited by alansidman; 08-11-2014 at 10:53 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Streamlining the process?

    Thanks for the file although I am still a little unclear about it. My tables are similar to yours but I want it to where you import the data(tables from excel and text files, if done correctly by user) to automatically query the results. I looked at your code and I'm still lost on how exactly it works. I am pretty sure this is exactly what I need but I never used it so I am a little lost.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Streamlining the process?

    Perhaps if you uploaded sample excel spreadsheets you wish to import to Access and then provide the details of what you want your query to do and what you want to happen with the results, I could help with some specific code that will accomplish what you want. If you are going to want to move down the Access trail, you will need to learn some basic VBA to ease the journey.

  5. #5
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Re: Streamlining the process?

    OnlineStreamline.xlsx

    here is a sample.

    For the first query I display MAPBOOK, PAGE, PARCEL, and EDU.

    PARCEL has a criteria of Not like "8**" and EDU had a criteria of Not like"0" and Not Like "Null"

    2nd query I use the table from query one. I then set the first column to APN: [MAPBOOK] & [PAGE] & [PARCEL]

    which is sort by ascending.

    Column two is set to TAXFEE: Sum(23*[EDU])
    and total is set to Expression and to two decimal places.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Streamlining the process?

    Based on the above, the following code should work for you. You will need to build a form and place a command button the form. Then put this code behind the command button. Change the name of the command button or the sub name to be the same. This also assumes you are using Windows 7 and Access and Excel version 2007 or later. If you have more than one sheet in your workbook, this will import each sheet as a table. If you are using only one sheet but have two or more empty ones, I suggest you delete the sheets in your workbook or it may cause issues with the code.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Streamlining the process?

    Hi Alcorp,

    Here is my approach to importing text files into access, its pretty simple and I have being using this for a number of years now daily!!
    Attached Files Attached Files
    ==========
    Bigroo1958
    Austin, Texas
    ==========

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help with streamlining formulas
    By belzarak in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2014, 03:34 PM
  2. Workbook Streamlining
    By goodlajd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 11:43 AM
  3. Streamlining Code
    By w424637 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2009, 08:58 AM
  4. [SOLVED] How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 06:06 AM
  5. [SOLVED] How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 02:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1