D
Don Garry
Hello, I'm hoping someone can assist me with a problem I have.
I have a form that imports a picture into it....here's the code.
strStockNum = Me.StockNum & ".jpg"
If IsNull(DLookup("[PathToPic]", "VehiclePic")) Then
Me.imgVehiclePic.Picture = ""
Else
Me.imgVehiclePic.Picture = DLookup("[PathToPic]", "VehiclePic")
& strStockNum
End If
When I use the record selector at the bottom of the form to move between
records the forms current event uses the above code and everything works
fine and the new picture is imported.
However, if I indavertently double click on the move to the next record
button Access completely crashes.
I had the same problem when trying to access the above form from another
form when I inadvertently double clicked the command button which opened the
above form. I was able to correct that problem by using the
DoCmd.CancelEvent in the double click event of the command button.
Does anyone have any suggestions on what I might do here ?
I have a form that imports a picture into it....here's the code.
strStockNum = Me.StockNum & ".jpg"
If IsNull(DLookup("[PathToPic]", "VehiclePic")) Then
Me.imgVehiclePic.Picture = ""
Else
Me.imgVehiclePic.Picture = DLookup("[PathToPic]", "VehiclePic")
& strStockNum
End If
When I use the record selector at the bottom of the form to move between
records the forms current event uses the above code and everything works
fine and the new picture is imported.
However, if I indavertently double click on the move to the next record
button Access completely crashes.
I had the same problem when trying to access the above form from another
form when I inadvertently double clicked the command button which opened the
above form. I was able to correct that problem by using the
DoCmd.CancelEvent in the double click event of the command button.
Does anyone have any suggestions on what I might do here ?