+ Reply to Thread
Results 1 to 7 of 7

Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    Dear Experts

    Here i am looking for ur help in VBA thorugh set of table data In Ms-Access, I have set of data in table and in form i create two textbox and one commandbutton

    i want generate report from table move to save as xls file depends upon dates pick from start and end date in form of Report

    Where ever data filter through date and generate as xls file particular data i want save it into existing file in particular location.

    "C:\Users\mani\Desktop\Save\ReportFile.xlsb"

    Please find the attachment msaccess & xl file...
    Attached Files Attached Files

  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,879

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    You have several date fields in your table. Which date field are you wanting to filter on?

    EDIT: Just saw that you specified Order Release Date. OK!!
    Last edited by alansidman; 05-22-2014 at 08:47 AM.
    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
    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,879

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    See attached.
    1. This file is in AC2000 format. It cannot create an xlsb file. They did not become valid files until XL 2007 and early versions of ACCESS will not recognize them. You will have to create an .xls file. I have built the code to reflect this.
    2. I created a query that takes its date values from the form
    3. If there are no dates in the form, a message box appears
    4. I added a filter to clear the dates for you.

    Post back with any questions you may have.

    Alan
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    Dear sir

    See 24th Column Name is "Order Release Date" Date Field is for date filter

  5. #5
    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,879

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    Yes. Figured that out. See my Edit in my posting #2. Did you look at my solution in post 3?

  6. #6
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    Yes, sir really i didnt see it fantastic it works..... Solved Keep help me sir thanks alot once again

  7. #7
    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,879

    Re: Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks for the rep

+ 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. The latest poi.jar file is anable to generate the excel report ou java application
    By Rohith4089 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 10:03 AM
  2. Replies: 0
    Last Post: 11-03-2012, 09:10 PM
  3. Cannot save Project file as MS Access file
    By Jumpinjackflash in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 07:40 PM
  4. [SOLVED] Cannot save Project file as MS Access file
    By Jumpinjackflash in forum Excel General
    Replies: 0
    Last Post: 01-11-2006, 01:55 PM
  5. [SOLVED] Automatically save report to new file name each month
    By mhayli in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-03-2005, 10:05 PM

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