N
Nathan Sanders
Hi,
I have a table that contains sales data. I am trying to create a form on
which two dates are entered and the sales figures between those dates is
calculated and shown on the form. Below is the code I have tried
unsuccessfully. if someone can point me in the right direction that would
be great.
Private Sub List6_AfterUpdate()
With Me.List14
.RowSource = _
"SELECT sum(dailysales.fuel) as fuel " & _
"FROM dailysales " & _
"where (dailysale.date) between " & Me.List6 & " and " & Me.List8
.Requery
End With
End Sub
Cheers
Nathan
I have a table that contains sales data. I am trying to create a form on
which two dates are entered and the sales figures between those dates is
calculated and shown on the form. Below is the code I have tried
unsuccessfully. if someone can point me in the right direction that would
be great.
Private Sub List6_AfterUpdate()
With Me.List14
.RowSource = _
"SELECT sum(dailysales.fuel) as fuel " & _
"FROM dailysales " & _
"where (dailysale.date) between " & Me.List6 & " and " & Me.List8
.Requery
End With
End Sub
Cheers
Nathan