Search results

  1. W

    Query using date filter from textbox

    I had managed to do it before using two textboxes with Between DateSerial([forms]![main]![cboYear],[forms]![main]![cboMonth],1) And DateSerial([forms]![main]![cboYear],[forms]![main]![cboMonth]+1,0) placed in the Cirteria part of the query, I cant get it to use one textbox. The plan was...
  2. W

    Query using date filter from textbox

    Maybe not, the textbox displays todays date as on the forms load Private Sub Form_Load() DoCmd.Maximize monthtext = Date End Sub The user then changes the month using command buttons one to go back and month and one to go forward. I though it would be the same format but im no expert.
  3. W

    Query using date filter from textbox

    03/01/2010 is the format in the table
  4. W

    Query using date filter from textbox

    I have tried to do it that way but I have no joy so far, only if the data is from the same date of the month as today. I think it is because the textbox shows the day month and year
  5. W

    Query using date filter from textbox

    Hi guys, My mind has gone blank with this one, I have a textbox on the main form called monthtext. I want to use the data from this to filter a query to display records from only the month selected. I have tried a few ways but for the life of me I cannot work this out. Any help would be great
  6. W

    Help with query

    I have created a new form and put the combo boxes on and changed the query criteria to point at them but i still am getting the same error when I try and open the form
  7. W

    Help with query

    Rich do you have any ideas on what the issue is?
  8. W

    Help with query

    that has been removed
  9. W

    Help with query

    still if i remove the criteria from the query it will open the form and then if i keep the form open and place the criteria back into the query it works. Just not when I close the form and reopen it. I have been through the VB coding on the form and cannot see anything wrong except two...
  10. W

    Help with query

    where does it show monthtext
  11. W

    Help with query

    i dont think so, If i remove the criteria and open mainmenu form then add the criteria back in the query it works up until i close and reopen the mainmenu or close and reopen the database
  12. W

    Help with query

    in the criteria on the query, it did work until i closed the database then went back in
  13. W

    Help with query

    uploaded if anyone wants to look
  14. W

    Help with query

    It wont open I get that message
  15. W

    Help with query

    if i delete the Between DateSerial([forms]![mainmenu]![cboYear],[forms]![mainmenu]![cboMonth],1) And DateSerial([forms]![mainmenu]![cboYear],[forms]![mainmenu]![cboMonth] +1,0) and then open the mainmenu form then add criteria back in it works until the mainmenu form is closed and reopen or...
  16. W

    Help with query

    Between DateSerial([forms]![mainmenu]![cboYear],[forms]![mainmenu]![cboMonth],1) And DateSerial([forms]![mainmenu]![cboYear],[forms]![mainmenu]![cboMonth] +1,0) now gives me "This expression has been typed incorrectly, or is too complex to evaluate..."
  17. W

    Help with query

    Is this ok, or is there a better way Private Sub cboMonth_AfterUpdate() DoCmd.OpenQuery "Data Query" DoCmd.Close End Sub
  18. W

    Help with query

    What a star, thanks so so much, now if I use after update to rerun the query it should update each time its changed
  19. W

    Help with query

    it doesnt show me anything for this month and i have 1 record :(
  20. W

    Help with query

    Between DateSerial(Year([forms]![mainmenu]![cboYear]),Month([forms]![mainmenu]![cboMonth]),1) And DateSerial(Year([forms]![mainmenu]![cboYear]),Month([forms]![mainmenu]![cboMonth])+1,0)
Back
Top Bottom