I completed the steps and replied with the following.
The Criteria returned was [Client Reference]=1577
This is the reference number for the prson's record I am on when I
click
the
button.
After pressing F5 th same error comes up.
:
Dirk suggested a very specific course of action. How did that go?
Are
you
clear on how to set a break point and the rest of it?
If you are unclear about setting a break point, open the VBA editor.
Click
the vertical bar to the left of the line:
DoCmd.OpenForm stDocName, , , stLinkCriteria
A red dod will appear in the vertical bar, and the line of code will
be
highlighted. Click the button to run the code. It will stop at the
selected line. From there the instructions should be self-evident.
message
Hi,
The Criteria returned was [Client Reference]=1577
This is the reference number for the prson's record I am on when I
click
the
button.
After pressing F5 th same error comes up.
Regards,
David
:
message
I opened the Personal Details page and instead of clicking on the
button
I
tried to open up the form directly from the Forms list.
Nothing happens, No error message.
That leads me to believe that there is a problem with the criterion
being
specified in your Open1stAccessCourse_Click() event procedure. As
a
first
step to investigate this, set a breakpoint on the line
DoCmd.OpenForm stDocName, , , stLinkCriteria
Then trigger the procedure by clicking the button. When code
execution
halts at the breakpoint, press Ctrl+G to bring up the Immediate
window
in
the VB editor, and enter this in the Immediate window:
?stLinkCriteria
When you press the Enter key after that line, the value of
stLinkCriteria
should be displayed. Copy and paste that into a reply to this
message,
so I
can see if there is anything odd about it. Then return to the VB
editor
and
press F5 to let the code continue, and confirm that the error was
raised
as
before.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)