Updating ole object msaccess
Anyway, I have a file name, And I need to turn it into an ole object and insert it into the form. To clarify - I need to turn a file name, into an ole object with that file, and than insert it into the table. EDIT: Ok, as pointed out by @Hans Up I need to explain.
In my form, I have a bound OLE object that is not bound to a field, but to a dlookup function.
The SELECT query always returns data when called on a command object using Execute Reader().
(Note that I've used this query both with and without the enclosing brackets around the field names.) Because of this failure, I attempted to use a Data Adapter instead. Update Command = update Command; Data Table dat Users = new Data Table(); retrieve Command.
The advantage of using embedded objects is that the objects are actually saved inside the database, so you don't have to worry about any attached files becoming lost or erased. Instead, a link contains information on where to find the source data file.
The advantage of using linked objects is that if the source file is changed, the linked object in the database is automatically updated to reflect the changes.
If you had linked the chart to seven different tables, each table will automatically show the change.Note When an object's data is changed, the Updated event occurs.The following example sets the Update Options property for an unbound object frame named OLE1 to update manually, and then uses the Action property to force an update of the OLE object in the control.For example, if other users or applications can access or change linked spreadsheet data on a form, you can use this property to specify that the linked data only be updated when the database is opened in single-user mode.When the Update Options property is set to Manual, updates don't occur based on the setting of the Refresh interval box on the Advanced tab of the Options dialog box, available by clicking Options on the Tools menu.
The Update Options property setting is also available through the OLE/DDE Links command on the Edit menu.