Results 1 to 4 of 4
  1. #1
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10

    Ms access Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate vba

    Dear Experts




    I need vba help on Msaccess form Cmd button retrive data from Start & End date depends upon of Tabular column


    I have set of 3 Table column named Dispatch,Closed,Cancel & One Form


    condition is
    If Select Dispatchcalls Filter Date col is = "Order Relase Date". Col No 26
    If Select ClosedCalls Fitler Date Col is = "ClosedDate". Col No 48
    If Select Cancelcalls Filter Date Col is = "ClosedDate". Col No 38


    Save
    1.If DispatchCalls select in table List and Filter Date in Start&End ..Retrive Data from Table DispatchCalls depends upon OrderrelaseDatecol... Savefile as Dispatch
    2.If ClosedCalls select in table List and Filter Date in Start&End ..Retrive Data from Table ClosedCalls depends upon ClosedDatecol... Savefile as Closed 3.If CancelCalls select in table List and Filter Date in Start&End ..Retrive Data from Table CancelCalls depends upon ClosedDatecol...savefile as Cancel


    Find the attachment
    Attached Files Attached Files
    Last edited by pbaldy; 05-29-2014 at 07:34 AM. Reason: Dead link removed

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Have a cbo box on the form that has your selections:
    Dispatchcalls,ClosedCalls,Cancelcalls

    This combo list is pulled from a config table with 2 columns, 1 the item in the pick list, and 2 the query to run.
    [pick] , [qry]
    Cancelcalls, qsCancelCalls
    ClosedCalls, qsClosed
    etc..

    the cbo box value =col 2 (the query)
    when the user picks the item in the combo, it runs the query (in fld 2)

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    OnsiteDCC.zip

    Note the slight change to the table list1

  4. #4
    johnexcel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2014
    Posts
    10
    Sir Pick the date in textbox0 & textbox2 value not retrieve exact dates. like
    I
    i pick the date 01-may-2014 & 02-may-2014 but it not extract data but if reverse date format like 05-Jan-2014 it works..
    Last edited by johnexcel; 05-30-2014 at 03:35 AM. Reason: error

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

Similar Threads

  1. Change Photo Depends on combo box value
    By mr_right in forum Access
    Replies: 3
    Last Post: 05-30-2013, 01:48 AM
  2. Replies: 1
    Last Post: 04-05-2013, 12:49 PM
  3. Replies: 7
    Last Post: 06-14-2011, 03:45 PM
  4. One combo depends on another doesent work
    By scifo_dk in forum Forms
    Replies: 2
    Last Post: 11-26-2010, 04:25 AM
  5. Replies: 1
    Last Post: 10-22-2009, 03:32 AM

Tags for this Thread

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