RE: Event when Access table is accessed through ODBC ?



Access does not support triggers. At the table level, Access has no way of
knowing that anything at all has been done to the records.

Access is a file-based database which means that all data is stored in a
file and its up to the application running on your PC to work with it. A
Client-Server database has two parts - the part on the PC (Client) that makes
the request to the server. Only Client-Server databases, such as SQLServer,
Oracle, etc, support triggers.

"Sverk" wrote:

OK, thanks, I see.
Then I figure I might get my thing done by having IMatch not just making a
Read but also an insignificant Update to the record in the Access table, just
to trigger the code in there.
Thus what you say, "Client-Server based databases allow you set Triggers on a
table (code that executes when a record is INSERTED, UPDATED or DELETED)",
that could be what I need.
Could you please indicate how to set up such a trigger?
Is there a special way for such triggers?
Or would it simply(???) be like if the table is open and showing in a form
there would occur a useful form-event whenever a record in the table is
updated through ODBC?
Would it then also indicate which record was updated?
All help appreciated,
--
Sverk


"dch3" skrev:

Sorry, but there are no table-level events. Its only at the form or report
level. Also, while Client-Server based databases allow you set Triggers on a
table (code that executes when a record is INSERTED, UPDATED or DELETED),
there's nothing to my knowledge that checks when a table is being otherwise
accessed - as in Read. That'd be more of a function of the engine driving the
database.

"Sverk" wrote:

Hi,
I have an Access 2007 table of photo-films and I use IMage for handling of
digitized photos.
I need to link these two applications in certain ways.
From IMage I am able to access the Access table through ODBC, read and
update etc.
Fine, and next thing is to get Access to synchronize with these ODBC calls.
Whenever IMage calls on a record in the Access table, I want Access to
display that record in a form, or something like that.
So here are my questions:
Assuming the Access database is open, what I need is an event that gets
triggered when it is accessed from another application through ODBC.
Is there any? Where do I find it?
And, how do I know in the Access code which record is being accessed?

See what I mean?
Help please,





.



Relevant Pages

  • RE: Event when Access table is accessed through ODBC ?
    ... But the crucial thing is then is whether and how a change in the database ... Only Client-Server databases, such as SQLServer, ... Oracle, etc, support triggers. ... updated through ODBC? ...
    (microsoft.public.access.modulesdaovba)
  • Having Trouble with triggers!! ~ Please Help!
    ... master database and three satellite using triggers. ... server to be used as my remote satellite test. ... the stored procedure, right?!... ...
    (microsoft.public.sqlserver.replication)
  • RE: Event when Access table is accessed through ODBC ?
    ... But the crucial thing is then is whether and how a change in the database ... Only Client-Server databases, such as SQLServer, ... Oracle, etc, support triggers. ... updated through ODBC? ...
    (microsoft.public.access.modulesdaovba)
  • Re: Advice sought on use of DTS [Long]
    ... it may help to know that you can disable triggers temporarily do ... You may want to set up a sql job to copy over the remote database (the ... Can you programmatically tell a DTS package which databases to update? ...
    (microsoft.public.sqlserver.dts)
  • Re: OO and IBM z series COBOL was Re: Discussions of COBOLphilospphy
    ... Even if we had a perfect database, there is still a case for making it ... A GOOD use for triggers is leaving audit trails. ... misbehaving applications. ...
    (comp.lang.cobol)