Solved

Very Strange

Posted on 2013-12-01
5
128 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
Comment Utility
Create a new database, import form, report  and just other objects to reproduce the issue.
Upload that database.
0
 

Author Comment

by:DatabaseDek
Comment Utility
Just finishing up for today out all tomorrow will get back Tuesday

Thanks.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
Comment Utility
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.
Comment Utility
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
Comment Utility
That's got it.

If anyone knows why this happens, I'm curious

Thanks to all
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

743 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

16 Experts available now in Live!

Get 1:1 Help Now