J
JFK
Hi,
This is a bit of a strange one. We have a recordset that takes a name
and a date referenced from another form as parameters. Last week this
worked fine and then this morning for reasons that we can't fathom it
errors with no current record.
The code extract is:
x = Forms![choose dates]![Text1].Value
y = Forms![choose dates]![Text3].Value
sql = "SELECT activities.date, activities.staff_name,
activities.[activity start], activities.[activity end],
activities.description FROM activities WHERE (((activities.date) = #" &
x & "#) And ((activities.staff_name) = '" & y & "')) ORDER BY
activities.[activity start], activities.[activity end];"
I think it's something to do with the date parameter as we have a
DCOUNT function elsewhere that has also started playing up this
morning.
Any suggestions?!?!?
This is a bit of a strange one. We have a recordset that takes a name
and a date referenced from another form as parameters. Last week this
worked fine and then this morning for reasons that we can't fathom it
errors with no current record.
The code extract is:
x = Forms![choose dates]![Text1].Value
y = Forms![choose dates]![Text3].Value
sql = "SELECT activities.date, activities.staff_name,
activities.[activity start], activities.[activity end],
activities.description FROM activities WHERE (((activities.date) = #" &
x & "#) And ((activities.staff_name) = '" & y & "')) ORDER BY
activities.[activity start], activities.[activity end];"
I think it's something to do with the date parameter as we have a
DCOUNT function elsewhere that has also started playing up this
morning.
Any suggestions?!?!?