Re: UPDATE statement help / MS Access db
- From: "SMussler" <smussler.tmp2@xxxxxxxxxxx>
- Date: Wed, 9 Apr 2008 19:34:05 -0400
Not sure if it's the problem, but you have spaces around the dashes in one update statement and not in the other...
"jamesfreddyc" <jamesfreddyc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D8A89A1B-89C8-4F59-99D6-4983F9B8377D@xxxxxxxxxxxxxxxx
Here is the original SQL Statement that correctly executes in Access:
UPDATE TBLPID SET TBLPID.f_TBLPID_PID = Left([f_TBLPID_PID],4) & "-" &
Mid([f_TBLPID_PID],5,2) & "-" & Mid([f_TBLPID_PID],7);
"jamesfreddyc" wrote:
VB6 app
Trying to setup an UPDATE statement to modify all records in a single column
(Access db). Everything works fine until it hits the UPDATE statement (no
errors, but no updates made to the table).
Connection is fine, table is fine, field is fine, just not updating.
Dim sql_updPid As String
sql_updPid = "UPDATE TBLPID SET TBLPID.f_TBLPID_PID = Left([f_TBLPID_PID],4)
& "" - "" & Mid([f_TBLPID_PID],5,2) & "" - "" & Mid([f_TBLPID_PID],7);"
.
- References:
- UPDATE statement help / MS Access db
- From: jamesfreddyc
- RE: UPDATE statement help / MS Access db
- From: jamesfreddyc
- UPDATE statement help / MS Access db
- Prev by Date: Re: UPDATE statement help / MS Access db
- Next by Date: Operation is not allowed when the object is closed....
- Previous by thread: RE: UPDATE statement help / MS Access db
- Next by thread: Re: UPDATE statement help / MS Access db
- Index(es):
Relevant Pages
|
Loading