I have a table with a field in it called "date" that, obviously enough, stores the date that the current record was created. I have a form based on a query that uses this table. The query uses a text box on the form as criteria, and it works perfectly fine if I manually type in a date and then click the button. However, I was trying to make the default value of that text box be the current date via the date() function.
However, when I try to do this with the text box properties OR directly through code it gives me an error. I'm not positive, but I THINK this error is being generated because Access doesn't know how to differentiate between the date field in my table and the date() function.
Is there any way around this, without having to rename the field in my table? I don't want to have to do this, because this database file has a very large amount of queries and reports that are based on this table.
So does anyone have any other suggestions?
Thanks a ton.
Brooks Tilson
Database Development
Tilson Machine, Inc.
However, when I try to do this with the text box properties OR directly through code it gives me an error. I'm not positive, but I THINK this error is being generated because Access doesn't know how to differentiate between the date field in my table and the date() function.
Is there any way around this, without having to rename the field in my table? I don't want to have to do this, because this database file has a very large amount of queries and reports that are based on this table.
So does anyone have any other suggestions?
Thanks a ton.
Brooks Tilson
Database Development
Tilson Machine, Inc.