G
Guest
By oversight I named one of my fields "Date" in the SQL stmt for a form. I
realized the error of my ways so I changed the name of the field from "Date"
to "ApptDate" so as not to conflict with the system's Date() function. I also
replaced all instances of the field name "Date" in the VBA code and in all
the controls on the form that referenced that fieldname.
The Problem: Now I need to use the Date() function to do a couple
calculations in VBA and it doesn't work. Whenever I enter "Date()" in the
form's VBA it removes the parentheses () and just leaves "Date". Further,
whenever I open the form it asks me to supply a "Date" parameter.
Could that old "Date" fieldname still be stored somewhere deeper than the
SQL stmt and VBA code? I've checked all the VBA and all the controls on the
form for references to "Date" and there are no more...
I'm wondering if I should just copy all the controls onto a new form,
recreate the SQL statement and copy over the VBA? I'll try that next, but if
there's an easier way, then of course I'm interested in it.
Stuck...
Any help would be great. Thanks!
realized the error of my ways so I changed the name of the field from "Date"
to "ApptDate" so as not to conflict with the system's Date() function. I also
replaced all instances of the field name "Date" in the VBA code and in all
the controls on the form that referenced that fieldname.
The Problem: Now I need to use the Date() function to do a couple
calculations in VBA and it doesn't work. Whenever I enter "Date()" in the
form's VBA it removes the parentheses () and just leaves "Date". Further,
whenever I open the form it asks me to supply a "Date" parameter.
Could that old "Date" fieldname still be stored somewhere deeper than the
SQL stmt and VBA code? I've checked all the VBA and all the controls on the
form for references to "Date" and there are no more...
I'm wondering if I should just copy all the controls onto a new form,
recreate the SQL statement and copy over the VBA? I'll try that next, but if
there's an easier way, then of course I'm interested in it.
Stuck...
Any help would be great. Thanks!