sql - Filter DataTable by DateTime (ShortDate) -


I am working on the VB.Net project in Visual Studio 2013, and I have a data table in which the short date "date Bought format "in the column named" I want to filter the data, such that all the passes passed through the filter are imported into other data tables. For example, if the minimum filter was "01/01/1750" and the maximum filter "01/01/2050", a row with "4/12/1989" in the appropriate column will be imported into a separate table.

The filter looks like this:

  String = "01/01/1750" as a slow date string = "01/01 / 2050 "String =" Date Date Expression = "Date Received & gt; = #" & amp; Date man and amp; "# And date purchased & lt; = #" & amp; Date time.ppers (date max. Text) & amp; "#" Slow datefilters () = oldTable Detroit date for Detroit for every R. FILTER NEWTABLE Import Error (R) Next   

My problem is that I get the error message "Additional Information: Syntax Error: Unavailable Operations After 'Purchased' Operator." And no rows are imported . Date expression looks something like this:

"Date has been bought> = # 1/1/1700 # and the date purchased & lt; = # 12/31/3000 #"

Why does not this work?

Edit : The problem was completely solved using "date purchase" instead of "date purchase." Thanks! The problem was solved using [date purchased] instead of "date purchased".



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -