Re: VBA dating
From: Andrej (andrej.gobec_at_volja.net)
Date: 02/05/04
- Next message: Baisong Wei[MSFT]: "RE: How to delete records from the original table while randomly selecting the records"
- Previous message: CSmith: "Re: How to create a table by code"
- In reply to: Van T. Dinh: "Re: VBA dating"
- Messages sorted by: [ date ] [ thread ]
Date: 5 Feb 2004 01:02:07 -0800
Much obliged, good sir!!
I would take you out for a beer, or whatever you prefer, if I could!!
You have really brightened up my day!! Your solution works perfectly! :D
Thanks a lot,
Andrej
-- "Van T. Dinh" <VanT.Dinh@discussions.microsoft.com> wrote in message news:<eJWSK6x6DHA.696@tk2msftngp13.phx.gbl>... > The difference is that in the ApplyFilter statements, you used *literal* > dates which must be in the US format "mm/dd/yyyy" enclosed in hashes. My > guess is that you Regional Settings use a different "Short Date" format from > above and therefore Access doesn't filter correctly. > > Try: > > DoCmd.ApplyFilter , "[date_of_production] = #" & _ > Format(Me.cbo_date.Value, "mm/dd/yyyy") & "#" > > or simpler, try: > > DoCmd.ApplyFilter , "[date_of_production] = [cbo_date]" > > or > > DoCmd.ApplyFilter , "[date_of_production] = Form![cbo_date]" > > and Access should interpret your filter correctly. > > -- > HTH > Van T. Dinh > MVP (Access)
- Next message: Baisong Wei[MSFT]: "RE: How to delete records from the original table while randomly selecting the records"
- Previous message: CSmith: "Re: How to create a table by code"
- In reply to: Van T. Dinh: "Re: VBA dating"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|