C
cbrack
I’ve linked to four free tables in a VFP 7 application. In my VBA code, I’m
pulling data from another Access dB, modifying it in my app, and attempting
to append records to the linked VFP tables. I’m using a System DSN to create
the links, and I’m using ADO 2.8. I’m able to delete and modify record in
the VFP tables, but not append?! The error I get when I attempt to use the
..AddNew method is that I’m trying to add a Null value to a variable not of
the variant type. One problem might be that all of the fields in the linked
tables are set to Required = Yes, which, of course, can’t be modified because
it’s a linked table. I’ve tried using a connection string to link directly
to the VFP tables and create a recordset, using both OLEDB and ODBC, and
although I can connect, I still am not able to append records. If I try
using a disconnected recordset, the error I get says the object must be
connected to perform the function when I try to use .AddNew.
Any thoughts, questions, or suggestions? Anything will be helpful.
pulling data from another Access dB, modifying it in my app, and attempting
to append records to the linked VFP tables. I’m using a System DSN to create
the links, and I’m using ADO 2.8. I’m able to delete and modify record in
the VFP tables, but not append?! The error I get when I attempt to use the
..AddNew method is that I’m trying to add a Null value to a variable not of
the variant type. One problem might be that all of the fields in the linked
tables are set to Required = Yes, which, of course, can’t be modified because
it’s a linked table. I’ve tried using a connection string to link directly
to the VFP tables and create a recordset, using both OLEDB and ODBC, and
although I can connect, I still am not able to append records. If I try
using a disconnected recordset, the error I get says the object must be
connected to perform the function when I try to use .AddNew.
Any thoughts, questions, or suggestions? Anything will be helpful.