vba - Perform a search for a user input date that falls between two dates -


I am trying to create a search that pulls all records with a user specified date that starts and The record expiry dates I also want the user to be able to drag it to "property"

I am starting for VBA only tomorrow and this is the latest version I can come up with:

  Private subcommand 4_Click () Dim strfilter string Strawfiler = [Start_Date] as  = = Format Me.RateDate, "Short Date") if not (Me.Property) then strfilter = strfilter & amp; "And [Num_Code] = '" & amp; Me Property End "End" if DoCmd.OpenReport "rpt_RatesAll", acViewPreview, strfilter end sub   

gives the most recent error message: run-time error '2465': Microsoft Access can not be found You can specify in your expression '| 1 '.

Any help would be greatly appreciated!

  strFilter = "[Start_Date]  gt; = #" & amp; Me.RateDate & amp; "#"   

Should do this.
What you have is really being taken as a string and do not use the values ​​you want

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -