Results 1 to 13 of 13
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528

    Search for date

    Hello Guys


    I have developed a drop-down list to choose a search for a specific date and its purpose is to process (search)
    But show me this message
    Are there other ideasClick image for larger version. 

Name:	1.PNG 
Views:	16 
Size:	11.0 KB 
ID:	17149

  2. #2
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Brothers
    To illustrate more
    I'm working on a project and construction company to build homes for the poor. This company has daily transactions
    Every day you buy, bricks, cement, building materials and other course also give wages to its workers
    The other day opens a new page to work
    Question
    To return to a specific day or date of certain how?
    Are ideas
    Help

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    That's an error in your code I think what is the code for the event that is triggering this message?

  4. #4
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you rpeare
    There is no code vba
    Combo box based on macro

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    yeah, a macro is basically dumbed down vba .

    So show the contents of your macro.

    Alternately you can create a sample of your database, put in enough junk data to give an idea of what's going on then tell us how to find the form you're having trouble with (if it's not immediately apparent).

    Then zip it up and upload it to this site for examination.

  6. #6
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you rpeare
    OK
    This is an example of
    To see (frmMoney accounts daily)
    Attached Files Attached Files

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Ok, tell me what you are doing to get this error. I have put in dates in the fields labeled DAT and DAT1 and not encountered an error. Or alternately, tell me what you are trying to do with this form. I don't use macros, I prefer VBA which is more flexible but I have not been able to replicate this error.

  8. #8
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Yes
    It runs on a computer and another computer does not work
    Is it possible to convert the event to Code VBA ?

  9. #9
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Hello
    Is it helping?

  10. #10
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You are not doing a very good job of describing your problem, for instance you didn't say that this was working on newer machines but not older etc.

    Maybe you should just say what you want the behavior of this form to be.

    Your embedded macros are just telling your form to go to a specific record not a range of records so you have to 'dat' fields on your form if you want all records between the two dates typed your criteria for the MAIN form would, instead of being TABLE1 would be a select query selecting all records relating to the values in your two dat tables i.e. a criteria of

    between [forms]![frmMoney Daily Accounts]![combo13] and [forms]![frmMoney Daily Accounts]![combo15]

    Without a very clear description of what you are trying to accomplish when changing the values in the two combo boxes I can't really help.

  11. #11
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you rpeare
    What I want to do is to show the results of a specific date for the work
    New macro works
    But do I to turn to the phrase (vba)
    See this
    Attached Files Attached Files

  12. #12
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Your DAT field is an unbound field. You can simply issue a

    me.requery

    command IF you base your form on a query that has a criteria of your DAT field like I mentioned in my prior post.

    If you are searching for results for a single day you should be able to put

    [forms]![frmMoney Daily Accounts]![combo13]

    in the criteria of your date field

  13. #13
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thanks to the speed of response rpeare
    Is it possible to modify the DB

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

Similar Threads

  1. Search By date (Today)
    By darwish in forum Programming
    Replies: 1
    Last Post: 03-07-2014, 03:46 AM
  2. Replies: 9
    Last Post: 11-25-2013, 04:33 PM
  3. Search date VBA but subform
    By Ruegen in forum Programming
    Replies: 4
    Last Post: 10-15-2013, 10:39 PM
  4. Replies: 3
    Last Post: 09-11-2013, 09:49 AM
  5. Replies: 3
    Last Post: 03-27-2013, 08:27 AM

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