Derek Brown
asked on
Very Strange
I have a break (at least I think that's what you call it when the code stops at a point and highlights the code concerned) that has me baffled. As you can see from the attached the offending code item has a value and should then run the code accordingly. But it breaks at that point.
I know that this is something silly I am missing but I don't know what.
It's run from a button on a form that opens a report. It must be something that is not yet recognised, saved or refreshed because when I close and reset the code window and click the button again it runs fine. It only happens when I have just opened the form and never again regardless of which record I move to.
The frustrating thing is that according to the little pop up box it appearers that the "FPMS" has a value.
Or perhaps it is an erroneous error caused by something else. It sometimes asks for a parameter value, It takes this from the form which has the button. So the button opens the report which opens a query that is looking for a parameter which is the item number of the form that has the button. How can it not get that information when it is right in front of my eyes
Capture.PNG
I know that this is something silly I am missing but I don't know what.
It's run from a button on a form that opens a report. It must be something that is not yet recognised, saved or refreshed because when I close and reset the code window and click the button again it runs fine. It only happens when I have just opened the form and never again regardless of which record I move to.
The frustrating thing is that according to the little pop up box it appearers that the "FPMS" has a value.
Or perhaps it is an erroneous error caused by something else. It sometimes asks for a parameter value, It takes this from the form which has the button. So the button opens the report which opens a query that is looking for a parameter which is the item number of the form that has the button. How can it not get that information when it is right in front of my eyes
Capture.PNG
ASKER
Just finishing up for today out all tomorrow will get back Tuesday
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And the next ones to try is in the VBA window hit <Ctrl>+<Shift>+<F9> to clear all breakpoints.
If that doesn't work then try a compact & repair.
If that doesn't work then try a compact & repair.
ASKER
That's got it.
If anyone knows why this happens, I'm curious
Thanks to all
If anyone knows why this happens, I'm curious
Thanks to all
Upload that database.