I have declared an array called NotEmailed()
I redim it later in the code as showen....it resizes this fine the FIRST time....any other time it comes across this code it says subscript out of rang....why will it work the first time but not the second...ive checked the numbers the second time around and NumberNotEmailed = 1. The first time NumberNotEmailed = 0. Any ideas?..
ReDim Preserve NotEmailed(0 To (NumberNotEmailed1 + 1), 0 To 1) As String
NotEmailed(0, 0) = rsPayroll!Name
NumberNotEmailed2 = 0
NotEmailed(NumberNotEmailed1, NumberNotEmailed2) = rsPayroll!Name
NumberNotEmailed2 = 1
NotEmailed(NumberNotEmailed1, NumberNotEmailed2) = rsPayroll!SSN
MsgBox "Hello"
NumberNotEmailed1 = NumberNotEmailed1 + 1
I redim it later in the code as showen....it resizes this fine the FIRST time....any other time it comes across this code it says subscript out of rang....why will it work the first time but not the second...ive checked the numbers the second time around and NumberNotEmailed = 1. The first time NumberNotEmailed = 0. Any ideas?..
ReDim Preserve NotEmailed(0 To (NumberNotEmailed1 + 1), 0 To 1) As String
NotEmailed(0, 0) = rsPayroll!Name
NumberNotEmailed2 = 0
NotEmailed(NumberNotEmailed1, NumberNotEmailed2) = rsPayroll!Name
NumberNotEmailed2 = 1
NotEmailed(NumberNotEmailed1, NumberNotEmailed2) = rsPayroll!SSN
MsgBox "Hello"
NumberNotEmailed1 = NumberNotEmailed1 + 1