This sorted it out.
Thanks so much
User Profile
Collapse
-
Yes it is a control.
When i remove the "Dim Rebatelog As Integer" i get variable not defined.Leave a comment:
-
Invalid qualifier after adding "option explicit"
I have a text box on a form that requires you put a number in, if the number is too short a msg box pops up telling you to fix it.
I have not been declaring variables so far and the code has worked.
Now that i learned i should declare it i went back and added the "option explicit" to my vba.
I'm now getting the error "invalid qualifier" when compiling on this form.
...Code:Option Compare Database
-
Thanks ZMBD!
Worked perfect. You could tell I was new at this.
I now see the difference of changing a button from a macro to VBA code.
Thanks so muchLeave a comment:
-
Hey NeoPa, I do not think the error box is a code error, I understand that this is a standard function of the software when a button or regular macro is interrupted. I'm more hoping that it can be suppressed.
ThanksLeave a comment:
-
Hi Rabbit. This code is being run by a button on my form.
I am using access 2007, but I do have the database in trusted location along with being in "enabled mode".Leave a comment:
-
Thanks zmbd.
I tried this and i still got the box when "No" is selected.
[IMGnothumb]http://i47.tinypic.com/1y7sbt.jpg[/IMGnothumb]
[Z{MOD- Text from image for those that can't see it}
]
I tried this with 2 variations of the code. the first using the exact wording "then exit function" and the second "then exit sub" on line 4
...Code:Sub
Leave a comment:
-
Prevent "Action Failed" Dialog box
Hi.
I have a converted macro which asks the user a vbayesno.
The code works perfect when "Yes" is selected, but when you select "No" it shows the "action failed" dialog box.
How can i prevent the dialog box from opening?
Here's my macro code
...Code:Function Control_Panel_Send_Submission_Confirmations() On Error GoTo Control_Panel_Send_Submission_Confirmations_Err
No activity results to display
Show More
Leave a comment: