Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updatable remote view.
Message
From
22/11/2001 22:48:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Updatable remote view.
Miscellaneous
Thread ID:
00585041
Message ID:
00585041
Views:
54
I have a problem to update the underlying table(Ms Access) for my remote view when the field of underlying table is reserve word eg. date, or the field name cannot accept by VFP eg. "pur order no".


I using following command to create my remote view:

CREATE SQL VIEW mex_transaction CONNECTION cmex ;
AS SELECT counter,;
action,;
[date],;
[purchase order no],;
FROM [Stores transactions] Stores_transaction

DBSETPROP('mex_transaction','VIEW','Tables','"Stores transactions"')

DBSETPROP('mex_transaction.counter','FIELD','KEYFIELD',.T.)
DBSETPROP('mex_transaction.counter','FIELD','UpdateName','"stores transactions".counter')

DBSETPROP('mex_transaction.date','FIELD','UpdateName','"stores transactions"."date"')
DBSETPROP('mex_transaction.date','FIELD','Updatable',.T.)

DBSETPROP('mex_transaction.action','FIELD','UpdateName','"stores transactions".action')
DBSETPROP('mex_transaction.action','FIELD','Updatable',.T.)

DBSETPROP('mex_transaction.purchase_order_no','FIELD','UpdateName','"stores transactions.purchase order no')
DBSETPROP('mex_transaction.purchase_order_no','FIELD','Updatable',.T.)

DBSETPROP('mexStores','VIEW','SendUpdates',.T.)


The view are working fine except I cannot update the date,purchase order no.

Please help me to solve the problem.


TIA.
Reply
Map
View

Click here to load this message in the networking platform