-
Okay -- you pasted your code into the OnClick event for the button? So it begins with "Sub" and ends with "End Sub" ? So the code block looks like this:
Sub CTRL5_5_OnClick(eventObj)
Dim objOutlook
Dim itmAppt
Set objOutlook = ...
-
Hi Hilary,
You were correct I have changed to VBA but nw get the following error.
InfoPath cannot open the selected form because of an error in the form's code.
The following error occurred:
Expected end of statement
File:script.vbs
Line:20
Dim dateIndex, timeIndex, descriptionIndex, duration, reminderTime Dim eventDate(), ...
-
I did not get the error before. But i think i have fixed the problem . Thanks!
-
It works... THanks!!!
Here is my new code...
Public Sub ButtonGetBreakDown_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
GetClientList(e)
...
-
But prior to enabling protection, you did not get that error when you opened your published form? Enabling design protection shouldn't have caused a data connection error....
-
I enabled protection. Then republished the form. and then i got the error when i would try to open the form.
-
I'm sorry, I'm confused. Do you mean this happened after you enabled protection? or do you mean you can't open it after publishing?
-
Thanks for the reply... I'll try your advise.
:)
-
If i try to open the form it says it wont open since i have a dataconnection in it and i dont have domain permissions now..
-
That works well, thank you.
One problem however, this toggle button and the related table are both nested inside of a repeating section.
What I am seeing right now is that the first instance of the repeated section is behaving correct while subsequent sections show both the plus/minus buttons visible at the same time.
The blue rectangles in the ...