Solved

Very Strange

Posted on 2013-12-01
5
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

689 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