I am tasked with inserting a record into a Lotus notes database via c#. In the past I have been able to do this simply by connecting to the database (myDatabase,nsf), then passing the
sql = Insert into MyForm (field1, field2) Values ('value1', value2')
using (var queryUpdate = new OdbcCommand(sql, db))
{
try
{
result = queryUpdate.ExecuteNonQuery();
}
}
Works fine. The problem now is, the main form (MainForm) has the actual data I need to insert into on a subform (Client Data). Accessing it using the above shows no such fields on MyForm. When I attempt to insert via:
sql = Insert into 'Client Data' (field1, field2) Values ('value1', value2')
or
sql = Insert into [Client Data] (field1, field2) Values ('value1', value2')
or
sql = Insert into Client_Data (field1, field2) Values ('value1', value2')
Always says table doesn't exist.
Does anyone know how to insert to a subform? I tried a view but this is not possible and docs state I should use insert on the actual document.
Any help or direction anyone can point me to is greatly appreciated. Thanks in advance for any and all help.
Geo...