I have the following code :
And
The MoveImageFiles routine works fine in other uses, but in this one particular call, the MsgBox gives the strBaseFileName value expected but if I step onto the next (Call) statement and hover over the field name it just gives me "strBaseFileName=" (with no value, not even ""). The other parameters all have their correct values. This is before executing the call.
In desperation, I have tried changing the parameter to ByVal, and Compacting/Repairing the database. All to no effect.
What's going on ?
Code:
Dim strBaseFileName As String
.
.
MsgBox "Moving files for " & strBaseFileName & ", " & SaleEventID
Call MoveImageFiles(FromStatus, 0, strBaseFileName, ToStatus, SaleEventID)
Code:
Public Sub MoveImageFiles(strOldStatus As String, _
lngOldID As Long, _
strFileName As String, _
strNewStatus As String, _
lngNewID As Long)
In desperation, I have tried changing the parameter to ByVal, and Compacting/Repairing the database. All to no effect.
What's going on ?