Im new to VBA and Acces and Im trying to take the values from this array and put all the items in a table. To make it more difficult, I dont actually have access to the database. This is the code I have so far. I'm not sure it works. Im sorry for the lack of info and the way this is formatted. Stack wasnt playing nice for me.
Dim ii As Integer
Dim srtTarget As String
Dim aryValue As Varient
Dim rdsBoxTypes As Varient
Dim aryHeader As Object
Set rdsBoxTypes = dbADO.query("SELECT tblBoxTypes.* FROM tblBoxTypes LEFT JOIN tblSlipTypes ON [tblBoxTypes].[SlipID]=[tblSlipTypes].[SlipID] WHERE [tblSlipTypes.SlipID]=1")
For ii = 10 To 1 Step -1
srtTarget = Replace(srtTarget, Space(ii), "Ø")
Next ii
aryValue = Split(strTarget, "Ø")
rdsBoxTypes.Filter = "[MatchString] ='" & aryHeader(ii) & "'"
If rdsBoxTypes.RecordCount <> 0 Then
rdsValuesToReturn.RecordCount.AddNew
rdsValuesToReturn.Fields("BoxValue").Value = aryValue
End If
Any suggestions and resources would be greatly appreciated!