Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ado and Default Values
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00536588
Message ID:
00536714
Views:
8
The VFP ODBC documentation says that default values are supported. I have used this on web sites to create pk values. I don't remember if I used default values or insert triggers.

Look in the DRVVFP.HLP file to see which functions are permitted.

-Dave

>The data source is DBC. I have the routine to generate the PK in a stored procedure in the dbc itself so it is sure to find it.
>
>Thanks...
>
>Tommy
>
>>>When I add a new record to may table via ado and odbc my "default" value is not entered into my primary key. If i just open it in vfp and append or insert a record it works just fine.
>>>
>>>Is there a way to make this happen via ADO?
>>>
>>>Thanks in advance...
>>>Tommy
>>
>>Is the data source a DBF / DBC?
>>
>>You may have to requery the recordset to see any primary key values assigned at the backend.
Previous
Reply
Map
View

Click here to load this message in the networking platform