I have a form to update a specific field in a table of records i.e. the user writes a value to an unbound text field and presses a button to run an update query that uses the string from the unbound field.
I thought it was a simple task but... :-(
SQL of the update query goes like this (and it's obviously wrong):
The Right([ImagePath], Len([ImagePath]) - InStrRev([ImagePath], "\")) I use it elsewhere in the VBA code and it works fine.
With my update query I am trying to "update" the [Imagepath] field of the tblImages to be the unbound text field [NewPath].[value] plus the right part of [ImagePath]
What I am doing wrong?
I thought it was a simple task but... :-(
SQL of the update query goes like this (and it's obviously wrong):
Code:
UPDATE tblImages SET tblImages.ImagePath = [NewPath].[value] &
Right([ImagePath], Len([ImagePath]) - InStrRev([ImagePath], "\")) WHERE (((tblImages.DeleteMark)<0));
The Right([ImagePath], Len([ImagePath]) - InStrRev([ImagePath], "\")) I use it elsewhere in the VBA code and it works fine.
With my update query I am trying to "update" the [Imagepath] field of the tblImages to be the unbound text field [NewPath].[value] plus the right part of [ImagePath]
What I am doing wrong?