473,382 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Updating OLE Object

In my project I have two tables with the same structure and second
table's data is a part of the first one. (one is the main and the
second is used to keep the results of filters performed on the first
one while doing search command. Each table has a lot of fields while
one of them is OLE Object and used to keep the picture object
(embedded not linked). By updating this OLE Object on the "filtered"
table, appropriate record on the main table should be updated with
this value to. I've tried to run SQL command UPDATE, but by executing
this line, MS Access get error and should be closed by Operating
System.
Does anybody has any idea?
Nov 13 '05 #1
3 4307
This may not be exactly the answer you asked for, but I would avoid the
whole issue by doing a slight re-design. Common wisdom says to not use OLE
photos in your tables - just use the path to the image as a text field, then
when you want to view the photo, update an image control's picture property
(initially set to 'none'):

Me.imgPhoto.Picture = "\\server\img1.jpg"
Darryl Kerkeslager
PS: search Google: photo access bloat
for reasons why
"Katy" <ka***@intermail.co.il> wrote in message
news:87**************************@posting.google.c om...
In my project I have two tables with the same structure and second
table's data is a part of the first one. (one is the main and the
second is used to keep the results of filters performed on the first
one while doing search command. Each table has a lot of fields while
one of them is OLE Object and used to keep the picture object
(embedded not linked). By updating this OLE Object on the "filtered"
table, appropriate record on the main table should be updated with
this value to. I've tried to run SQL command UPDATE, but by executing
this line, MS Access get error and should be closed by Operating
System.
Does anybody has any idea?

Nov 13 '05 #2
Thanks, but this solution is not suitable for me. I must use OLE on
the table and all images should be stored on this table as embedded
and there is no way to store them as linked (company policy)(if there
was such a possibility than your solution was suitable).
Thanks again
"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message news:<Rb********************@comcast.com>...
This may not be exactly the answer you asked for, but I would avoid the
whole issue by doing a slight re-design. Common wisdom says to not use OLE
photos in your tables - just use the path to the image as a text field, then
when you want to view the photo, update an image control's picture property
(initially set to 'none'):

Me.imgPhoto.Picture = "\\server\img1.jpg"
Darryl Kerkeslager
PS: search Google: photo access bloat
for reasons why
"Katy" <ka***@intermail.co.il> wrote in message
news:87**************************@posting.google.c om...
In my project I have two tables with the same structure and second
table's data is a part of the first one. (one is the main and the
second is used to keep the results of filters performed on the first
one while doing search command. Each table has a lot of fields while
one of them is OLE Object and used to keep the picture object
(embedded not linked). By updating this OLE Object on the "filtered"
table, appropriate record on the main table should be updated with
this value to. I've tried to run SQL command UPDATE, but by executing
this line, MS Access get error and should be closed by Operating
System.
Does anybody has any idea?

Nov 13 '05 #3
Do you have an error-trap around the statement? Usually the Access error
messages are at least somewhat more helpful then a run-time error. What is
the line of code and the error message generated (with error-trapping)?

Just an off-the-cuff guess, though, but this sounds like the kind of error
you get when you accidentally use an Access reserved-word as a variable.

Darryl Kerkeslager


"Katy" <ka***@intermail.co.il> wrote in message
news:87**************************@posting.google.c om...
Thanks, but this solution is not suitable for me. I must use OLE on
the table and all images should be stored on this table as embedded
and there is no way to store them as linked (company policy)(if there
was such a possibility than your solution was suitable).
Thanks again
"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message

news:<Rb********************@comcast.com>...
This may not be exactly the answer you asked for, but I would avoid the
whole issue by doing a slight re-design. Common wisdom says to not use OLE photos in your tables - just use the path to the image as a text field, then when you want to view the photo, update an image control's picture property (initially set to 'none'):

Me.imgPhoto.Picture = "\\server\img1.jpg"
Darryl Kerkeslager
PS: search Google: photo access bloat
for reasons why
"Katy" <ka***@intermail.co.il> wrote in message
news:87**************************@posting.google.c om...
In my project I have two tables with the same structure and second
table's data is a part of the first one. (one is the main and the
second is used to keep the results of filters performed on the first
one while doing search command. Each table has a lot of fields while
one of them is OLE Object and used to keep the picture object
(embedded not linked). By updating this OLE Object on the "filtered"
table, appropriate record on the main table should be updated with
this value to. I've tried to run SQL command UPDATE, but by executing
this line, MS Access get error and should be closed by Operating
System.
Does anybody has any idea?

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: njp | last post by:
BlankHi, How do I create a tightly coupled Object 1 such that when I update it in one collection, it is simultaneously and automatically updated in other collections? The collections are defined...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
5
by: Mark R. Dawson | last post by:
Hi all, I may be missing something with how databinding works but I have bound a datasource to a control and everything is great, the control updates to reflect the state of my datasource when I...
0
by: Michael Kellogg | last post by:
I have a problem wherein a query that updates a GridView doesn't seem to really stay in sync with a label I have above the GridView. I have a GridView object that I'm updating with information...
1
by: batista | last post by:
Hello all, I have a third praty grid control...named C1grid. Im using it in one of my apps.. Now, I have bind this grid to a custom dataset class named "DataViewEx". The code of the class is...
4
by: Brad Coble | last post by:
I have an activex control that is used in an old app originally written in VB6. It works good. I updated the VB6 app to VB.net. Got it working, sort of. The activex control uses withevents and...
0
by: mbenedict | last post by:
I am rather new at this code and am attempting to modify existing code to use clob datatypes, which I have never used before. The database tables have been set up for clob data. When trying to use...
0
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't...
1
by: jonbartlam | last post by:
Hi There I'm not sure what exactly is going wrong here. I'm writing an application that retreives a table from a database (tbl_internalfaults) and updates it. (Actually, just the status column will...
2
by: abdulhadi | last post by:
I have a table contains the results of matches and table contains the statistics how could I fill the statistics table by getting information from the result table the statistics table columns...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.