|
-
Aug 9th, 2005, 07:20 AM
#1
[RESOLVED] Code works on buttonclick, but not automatically
Right now on my program I have it so when the user clicks on a certain item in the combobox, it moves to that item. All I am using is
VB Code:
Do Until ID.text = newValue
If newValue > oldValue then
Me.RecordSet.MoveNext
Else
Me.RecordSet.MovePrevious
End If
Loop
Now this works fine...It moves the bound items to the correct record, however, if I allow the form_current event to run directly after this, I receive the error
 Originally Posted by Runtime Error '2115'
The macro or function set to the BeforeUpdate or ValidationRule for this field is preventing [Beta] from saving data in the field.
This happens on line
However, if I run the above loop, and stop form_current from running. Then run a commandbutton with this code
VB Code:
Thinger = False
Form_Current
Where thinger is the variable I used to stop form_current from running.
The program runs fine?? 
This has been stumping me for a good number of hours already, and any help would be appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|