Hi,
Im just needing some help in storing the variable "picfile". The problem is each time I loop through the recordset it resets the "picfile" variable. But I would like to save this!
Im thinking a for/next loop or an array??. But Any help would be very appreciated!!
-----------------------------------------------------------
Dim Batch_ID As Double
Dim txtRange As String
picFile = App.Path & "\image\"
Do Until crORS.EOF
Call GetPic(txtRange, crORS.Fields("Image_ID").Value, crORS.Fields("Batch_ID").Value)
picFile = picFile & crORS.Fields("Batch_ID").Value & "_" & crORS.Fields("Image_ID").Value & ".jpg"
Set Picture2.FormattedPicture = LoadPicture(picFile) ' This PicFile needs to be stored as I loop through the recordset
crORS.MoveNext
Loop
-----------------------------------------------------------
thanks
brendan
Im just needing some help in storing the variable "picfile". The problem is each time I loop through the recordset it resets the "picfile" variable. But I would like to save this!
Im thinking a for/next loop or an array??. But Any help would be very appreciated!!
-----------------------------------------------------------
Dim Batch_ID As Double
Dim txtRange As String
picFile = App.Path & "\image\"
Do Until crORS.EOF
Call GetPic(txtRange, crORS.Fields("Image_ID").Value, crORS.Fields("Batch_ID").Value)
picFile = picFile & crORS.Fields("Batch_ID").Value & "_" & crORS.Fields("Image_ID").Value & ".jpg"
Set Picture2.FormattedPicture = LoadPicture(picFile) ' This PicFile needs to be stored as I loop through the recordset
crORS.MoveNext
Loop
-----------------------------------------------------------
thanks
brendan