Hello. I program in VB.NET, and i prefer not to use access whereever possible, (please dont be offended!), ive been asked to write a program in access, and took to the challenge.
This is probably one of the simplest things ever, but i'm having trouble declaring an array.
The problem code is as follows:
Assuming that the Len() function is the VBA equivilent of the .NET's string.Length function, then the following should work:
The code then goes into some itteration statements, blah, blah. But all that works.
The problem is declaring the 2D array by the value of the Len(strStringValue).
Can anyone help?
This is probably one of the simplest things ever, but i'm having trouble declaring an array.
The problem code is as follows:
Code:
Private Sub btn_Calc_Click()
Dim strStringValue as String
strStringValue = Me.Form.NetPrice
Dim strStrLength As Integer
strStrLength = Len(strStringValue)
Assuming that the Len() function is the VBA equivilent of the .NET's string.Length function, then the following should work:
Code:
Dim strSubString(strStrLength) As String
The code then goes into some itteration statements, blah, blah. But all that works.
The problem is declaring the 2D array by the value of the Len(strStringValue).
Can anyone help?