Solved

Very Strange

Posted on 2013-12-01
5
149 Views
Last Modified: 2013-12-04
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
0
Comment
Question by:DatabaseDek
5 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 39688582
Create a new database, import form, report  and just other objects to reproduce the issue.
Upload that database.
0
 

Author Comment

by:DatabaseDek
ID: 39688613
Just finishing up for today out all tomorrow will get back Tuesday

Thanks.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39688855
Is it just stopping there without explanation or any error message?

If so, it sounds like a 'phantom breakpoint', which is not terribly uncommon.

Before importing your objects into a new database, try this:

-  Select and cut (delete) the offending line of code
-  Paste it back in at the same place
-  And/or try inserting some blank lines immediately above the offending line of code

Compile your code again, and try it again.
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 39688981
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.
0
 

Author Closing Comment

by:DatabaseDek
ID: 39694847
That's got it.

If anyone knows why this happens, I'm curious

Thanks to all
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now