Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TABLEUPDATE Data type mismatch error
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
TABLEUPDATE Data type mismatch error
Miscellaneous
Thread ID:
00785593
Message ID:
00785593
Views:
53
I am receiving the error "Data type mismatch" on a TABLEUPDATE. What I know to be true.

A). VFP 7.0 SP1 to VFP table attached to DBC. PHDBASE index on target table and on field CM_Desc.

1). No Stored procedure on table so that is not cause of problem.

2). Optimistic Row bufferening is absolotuly set.

3). The data types for all values are correct. The reason I know this is that I am inserting from memvars. All Memvars are being written to errorlog. Terminal Services does not allow clip board cut & paste to local window I cannot prove this here but I have checked on several error records.

4). Researched archives for some other problem but cannot find any possibility.

The code is
nPrevTableBuffering = CURSORGETPROP('BUFFERING', 'SP_CM')
CURSORSETPROP('BUFFERING', 3, 'SP_CM')

.....

INSERT INTO SP_CM (        ;
      CM_Code,             ;
      CM_Desc,             ;
      CM_Hosp,             ;
      UNIQUE               ;
   ) VALUES (              ;
      cCode,               ;
      cCM_Desc,            ;
      cProvider,           ;
      cNewId               ;
   )

lWrite = .T.      

.....

IF !TABLEUPDATE(2, .T., 'SP_CM', 'aErrorr')
*   ^errors here
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Next
Reply
Map
View

Click here to load this message in the networking platform