I have a table set up for a todo list with a date field “DATE111”. Records with dates run through the year 2010. When I open the form I want it to pull up and display the record for the current date.
I have the following code in the “On Open” event for the form “OrganizerToDoList”
Forms!OrganizerToDoList.Recordset.FindFirst "[DATE111]=" & Me.Text227.VALUE
Where ‘Me.Text227.VALUE’ has the current date, and 'OrganizerToDoList' is my form with only one table powering the form.
When I used the code I get the error:
The specified field ‘DATE111’ could refer to more than one table listed in the FROM clause of your SQL statement.
However, I have only one field named ‘DATE111’ in the ‘OrganizerToDoList’ table and the field ‘DATE111’ does not exist in any other table of the database.
I have also tried the following code and get the same error.
Me.Recordset.FindFirst "DATE111=" & date$
What am I doing wrong?
Thanks Russ
I have the following code in the “On Open” event for the form “OrganizerToDoList”
Forms!OrganizerToDoList.Recordset.FindFirst "[DATE111]=" & Me.Text227.VALUE
Where ‘Me.Text227.VALUE’ has the current date, and 'OrganizerToDoList' is my form with only one table powering the form.
When I used the code I get the error:
The specified field ‘DATE111’ could refer to more than one table listed in the FROM clause of your SQL statement.
However, I have only one field named ‘DATE111’ in the ‘OrganizerToDoList’ table and the field ‘DATE111’ does not exist in any other table of the database.
I have also tried the following code and get the same error.
Me.Recordset.FindFirst "DATE111=" & date$
What am I doing wrong?
Thanks Russ