+ Reply to Thread
Results 1 to 3 of 3

how to retrieve data from access between two date ranges using excel vba code

  1. #1
    Registered User
    Join Date
    01-27-2017
    Location
    INDIA
    MS-Off Ver
    2016
    Posts
    90

    how to retrieve data from access between two date ranges using excel vba code

    Hi Team,

    i have created user form to enter data into excel data base that is connected to ms access, now i am trying to retrieve data from access data base , i have created group box with from date and to date with button to press, but i am not sure how to write the code which select the from-date and to-date and retrieve the data between that date range.
    i have used date picker to select date.
    i am using office 2016
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: how to retrieve data from access between two date ranges using excel vba code

    SSql = "Select * from table where [date] between #" & range("A1").value & "# and #" & range("B1").value & "#"

    i cannot edit add the connection code. The site is blocking it!!
    Last edited by ranman256; 07-10-2017 at 08:35 AM. Reason: correction

  3. #3
    Registered User
    Join Date
    01-27-2017
    Location
    INDIA
    MS-Off Ver
    2016
    Posts
    90

    Re: how to retrieve data from access between two date ranges using excel vba code

    Hi , can you please attach your own code.

    Regards,
    Narsing Rao

+ 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. Data Restriction Retrieve from Excel/Access
    By AMIVELD in forum Excel General
    Replies: 1
    Last Post: 09-25-2015, 09:03 PM
  2. Retrieve access data into excel
    By hutty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2007, 10:41 AM
  3. Retrieve data from Access
    By tioilmo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2007, 09:27 AM
  4. Replies: 1
    Last Post: 04-18-2006, 04:19 PM
  5. How to get Excel to retrieve aggregate data from Access
    By Don MacKinnon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2005, 03:15 PM
  6. VBA coding to retrieve data from Access to Excel :S
    By Vicks in forum Excel General
    Replies: 2
    Last Post: 09-28-2005, 12:05 AM
  7. [SOLVED] Retrieve MS Access DDB Property in Excel VBA
    By ibeetb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2005, 08: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