atlanticdit
IS-IT--Management
Hi All,
Using Flexibility in a MS SQL 2000 environment and Macola Progression version 7.6.300C. Have created a script to pop up a Message Box warning users of a company on credit hold. The script was transported through the VBA TransportScript Utility in Macola. I've done it this way before without any issues. The script works on my computer as well as on another computer that has Flexibility installed. This other computer is also used by another administrator like myself. The problem is on two other computers that are used by regular users. The script doesn't launch on these computers--even if I use my Macola account. I installed Flexibility on one of these computers but it still didn't work. I did notice that in the References, under Tools in the VBA module, there was a notation that Data Object Wizard was missing. Can't see where I can download that Reference anywhere and I've successfully transported other scripts to computers that didn't have Flexibility installed and that used these same references.
My question is if there is a certain module, DLL, data component that needs to be installed on these machines to get them to work? Or do I have to do something other than just use the TransportScript utility? The code for the script follows:
The user id and password in the code are not blank as they are here. They are our admin username and password for our SQL database. Also, the data source and database name are intentionally blank but are correct in the actual code.
Thanks,
Dave
Using Flexibility in a MS SQL 2000 environment and Macola Progression version 7.6.300C. Have created a script to pop up a Message Box warning users of a company on credit hold. The script was transported through the VBA TransportScript Utility in Macola. I've done it this way before without any issues. The script works on my computer as well as on another computer that has Flexibility installed. This other computer is also used by another administrator like myself. The problem is on two other computers that are used by regular users. The script doesn't launch on these computers--even if I use my Macola account. I installed Flexibility on one of these computers but it still didn't work. I did notice that in the References, under Tools in the VBA module, there was a notation that Data Object Wizard was missing. Can't see where I can download that Reference anywhere and I've successfully transported other scripts to computers that didn't have Flexibility installed and that used these same references.
My question is if there is a certain module, DLL, data component that needs to be installed on these machines to get them to work? Or do I have to do something other than just use the TransportScript utility? The code for the script follows:
Code:
Private Sub AmountPaid_GotFocus()
Dim connString As String
Dim connARCUSFIL As New ADODB.Connection
Dim rsARCUSFIL As New ADODB.Recordset
Dim strCustomerNo As String
Dim strCustNo As String
connString = "Provider=SQLOLEDB.1;Persist Security Info=False;Data Source=;Initial Catalog = ;User ID=;password="
With connARCUSFIL
.ConnectionString = connString
.Open
End With
strCustomerNo = "00000000" & Me.CustomerNo.Text
strCustNo = Right(strCustomerNo, 12)
rsARCUSFIL.Open "Select * FROM ARCUSFIL_SQL WHERE cus_no = '" & strCustNo & "' ", connARCUSFIL, , adLockReadOnly
If rsARCUSFIL.Fields(23) = "Y" Then
MsgBox "This account is on credit hold. Please check against your list to see if they should be off credit hold!"
rsARCUSFIL.Close
Else
rsARCUSFIL.Close
End If
End Sub
The user id and password in the code are not blank as they are here. They are our admin username and password for our SQL database. Also, the data source and database name are intentionally blank but are correct in the actual code.
Thanks,
Dave