Solved

Very Strange

Posted on 2013-12-01
5
142 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

929 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

18 Experts available now in Live!

Get 1:1 Help Now