Jump to content

Complicated Query


Guest COLDGEORGE

Recommended Posts

Guest COLDGEORGE

Hi all, I'm working on a query to get a sum of entries of certain item in a determined period of time, for instance, how many pens were received in October and I'm using this code:Data1.RecordSource = "select sum(quantity) as totalentries from mientries where itemid = " & Text1.Text & " and date between #" & DTPicker1.Value & "# and #" & DTPicker2.Value & "# " the thing is that is not working as I wish, because I get the total of entries, instead of the total for the period of time. Any suggestion will be greatly appreciated, Coldgeorge.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...