MackMan
Registered User.
- Local time
- Today, 05:31
- Joined
- Nov 25, 2014
- Messages
- 174
An odd title.
However, I have an issue and was wondering if any others have had a similar problem.
When I'm running VBA not using a Break Point, to generate a random long number (based on date and number of entries) that needs to be inserted in a field in the table, using a loop statement, it sometimes gets muddled up and creates duplicates where none are allowed. other times it works perfectly.
However, if I use the break point, and step through it using [F8] all is good (every time). It creates all the necessary date and entry based numbers no problem, and no dupes. This has happened on a couple of occasions, and on other occasions has worked perfectly without the need of a break point.
Anyone else experienced this, where they run VBA, and all is good, and other times, it doesn't do what you wanted it to?
If so, what was your work to overcome this?
Is there a way to slow it down (even more odd)!
As always, thank you for your time.
However, I have an issue and was wondering if any others have had a similar problem.
When I'm running VBA not using a Break Point, to generate a random long number (based on date and number of entries) that needs to be inserted in a field in the table, using a loop statement, it sometimes gets muddled up and creates duplicates where none are allowed. other times it works perfectly.
However, if I use the break point, and step through it using [F8] all is good (every time). It creates all the necessary date and entry based numbers no problem, and no dupes. This has happened on a couple of occasions, and on other occasions has worked perfectly without the need of a break point.
Anyone else experienced this, where they run VBA, and all is good, and other times, it doesn't do what you wanted it to?
If so, what was your work to overcome this?
Is there a way to slow it down (even more odd)!
As always, thank you for your time.