C
Chuck Chopp
I have a form in an Access 2000 database application that calls a macro when
the On Activate event occurs. This macro simply performs the Requery action
and does not specify any object/control name in the parameter which should
result in the data source for the form [a query] being refreshed.
Previously, this worked w/o any problems at all. Recently, some changes
were made to record definitions [added some new fields] in some of the
tables [these are linked tables in a .MDB file that is separate from the one
that the forms, macros & modules exist in], but no changes were made that
should have affected the query. I didn't rename any existing fields.
Anyway, whenever the macro is executed, a message box is displayed as follows:
Title = "Action failed"
The macro name, a condition value of "True", an action name of "Requery" and
an empty string for "Arguments" are all displayed in the message box.
The only button that isn't disabled is "Halt".
When I click on the "Halt" button, the macro is halted and then the form
displays itself and it appears that all of the records [this is a master
record form] are displayed on the form. If I give focus to a different form
and then return to this form again, the On Activate event occurs again and
the same message box is displayed again.
Next, I replaced the macro that uses the Requery action with a VB event
procedure that calls the Requery method for the form. I simply use
"Me.Requery" in the event procedure. I am still getting an error when the
requery is performed, but the message is slightly more informative and
appears as follows:
Message box title = "Microsoft Visual Basic"
Message box text is as follows:
Run-time error '2465':
CDM Update Database can't find the field "|" referred to in your
expression.
The enabled buttons are "End", "Debug" and "Help".
I've reviewed the query object that the form uses as a data source [in
design view and in SQL view] and I cannot find any occurrences of a field
named "|" being used at all. I have also gone through and verified every
single field and control reference in the form itself and in the main form
that opens this master record form and, again, no typos were found.
I reviewed various postings found via Google but I didn't find anything in
particular to solve this problem.
Any ideas what might be going wrong?
TIA,
Chuck
--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
ICQ # 22321532
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651 800 774 0718 pager
8007740718 (at) skytel (dot) com
Do not send me unsolicited commercial email.
the On Activate event occurs. This macro simply performs the Requery action
and does not specify any object/control name in the parameter which should
result in the data source for the form [a query] being refreshed.
Previously, this worked w/o any problems at all. Recently, some changes
were made to record definitions [added some new fields] in some of the
tables [these are linked tables in a .MDB file that is separate from the one
that the forms, macros & modules exist in], but no changes were made that
should have affected the query. I didn't rename any existing fields.
Anyway, whenever the macro is executed, a message box is displayed as follows:
Title = "Action failed"
The macro name, a condition value of "True", an action name of "Requery" and
an empty string for "Arguments" are all displayed in the message box.
The only button that isn't disabled is "Halt".
When I click on the "Halt" button, the macro is halted and then the form
displays itself and it appears that all of the records [this is a master
record form] are displayed on the form. If I give focus to a different form
and then return to this form again, the On Activate event occurs again and
the same message box is displayed again.
Next, I replaced the macro that uses the Requery action with a VB event
procedure that calls the Requery method for the form. I simply use
"Me.Requery" in the event procedure. I am still getting an error when the
requery is performed, but the message is slightly more informative and
appears as follows:
Message box title = "Microsoft Visual Basic"
Message box text is as follows:
Run-time error '2465':
CDM Update Database can't find the field "|" referred to in your
expression.
The enabled buttons are "End", "Debug" and "Help".
I've reviewed the query object that the form uses as a data source [in
design view and in SQL view] and I cannot find any occurrences of a field
named "|" being used at all. I have also gone through and verified every
single field and control reference in the form itself and in the main form
that opens this master record form and, again, no typos were found.
I reviewed various postings found via Google but I didn't find anything in
particular to solve this problem.
Any ideas what might be going wrong?
TIA,
Chuck
--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
ICQ # 22321532
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651 800 774 0718 pager
8007740718 (at) skytel (dot) com
Do not send me unsolicited commercial email.