rickincanada
Board Regular
- Joined
- Aug 31, 2010
- Messages
- 61
I have a Macro, written by someone else, in an Excel workbook that I distribute, which is failing on Windows XP machines. This is because VBA is attempting to access Microsoft ActiveX Data Objects 6.1, however as I understand it can't be accessed in Windows XP. I'm wondering if anyone here, without having to dig through the entire Macro, could help suggest some alternative to the snippet below? This appears to be the only element I'm relying on that is not available in Microsoft ActiveX Data Objects 2.8. It would appear that the .Size is what's looking for the 6.1 Library.
Any help you can offer would be greatly appreciated! Thanks in advance.
Rick
Code:
Dim cmd As ADODB.Command
...
...
For i = 0 To cmd.Parameters.Count - 1
If cmd.Parameters.Item(i).Type = adDecimal Then
cmd.Parameters.Item(i).Precision = cmd.Parameters.Item(i).Size
cmd.Parameters.Item(i).NumericScale = 4
End If
Next i
...
...
Any help you can offer would be greatly appreciated! Thanks in advance.
Rick