Jun 16, 2005 #1 dhrehor IS-IT--Management Jun 16, 2005 23 US Need to truncate a field. Here is what I have: update PARTS set weight = substring(weight,1, charindex(' ',weight)) Original Field is : 5.36 lbs Need to make it: 5.36 Need this done throughout the table PARTS. Thanks Don
Need to truncate a field. Here is what I have: update PARTS set weight = substring(weight,1, charindex(' ',weight)) Original Field is : 5.36 lbs Need to make it: 5.36 Need this done throughout the table PARTS. Thanks Don
Jun 16, 2005 #2 Golom Programmer Sep 1, 2003 5,595 CA The corresponding Access functions are Mid and Instr Code: update PARTS set weight = Mid(weight,1, Instr(weight," ")) Upvote 0 Downvote
The corresponding Access functions are Mid and Instr Code: update PARTS set weight = Mid(weight,1, Instr(weight," "))
Jun 16, 2005 #3 RoyVidar Instructor Jun 16, 2000 6,606 NO Using the Val function, could perhaps fit here (check it out in the help files), else a combination of InStr and Mid? mid$(field,1, instr(field," ")-1) Roy-Vidar Upvote 0 Downvote
Using the Val function, could perhaps fit here (check it out in the help files), else a combination of InStr and Mid? mid$(field,1, instr(field," ")-1) Roy-Vidar