473,385 Members | 1,890 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,385 software developers and data experts.

Access to oracle syncronisation

I have an access application which is used in four diff geographical locations, I want the data from individual applications to be pushed into a oracle server once in a month(Manually by button click), so that reports can be taken from central location. How do i configure this.?

My concerns are in identifying the updates that are made only during the particular month. Can we put a timestamp on the respective tables to identify this
Jan 15 '10 #1

✓ answered by TheSmileyCoder

There may be smarter ways of doing it, but what I do is add 2 date fields to each table, and then have the following code in the beforeupdate.
One datefield will be called dt_Created, other will be dt_LastChanged.

The code is shown below. I also keep track of who made the edits, by a custom UserID() function.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeUpdate(Cancel As Integer)
  2. If Me.NewRecord Then
  3.     'If new record set the metadata for who created it, and when
  4.     Me.cmb_CreatedBy = UserID()
  5.     Me.tb_CreatedOn = Now()
  6. End If
  7.  
  8.     'Set data on when this item was last changed.
  9.     Me.tb_LastChangedOn = Now()
  10.     Me.cmb_LastChangedBy = UserID()
  11.  
  12. End Sub
The fields are locked so users can't manipulate them. Depending on the situation they might even be hidden sometimes.

3 1289
TheSmileyCoder
2,322 Expert Mod 2GB
There may be smarter ways of doing it, but what I do is add 2 date fields to each table, and then have the following code in the beforeupdate.
One datefield will be called dt_Created, other will be dt_LastChanged.

The code is shown below. I also keep track of who made the edits, by a custom UserID() function.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeUpdate(Cancel As Integer)
  2. If Me.NewRecord Then
  3.     'If new record set the metadata for who created it, and when
  4.     Me.cmb_CreatedBy = UserID()
  5.     Me.tb_CreatedOn = Now()
  6. End If
  7.  
  8.     'Set data on when this item was last changed.
  9.     Me.tb_LastChangedOn = Now()
  10.     Me.cmb_LastChangedBy = UserID()
  11.  
  12. End Sub
The fields are locked so users can't manipulate them. Depending on the situation they might even be hidden sometimes.
Jan 15 '10 #2
What i did try is something like i made a linked table in acess through microsoft odbc but whenever i try to insert into that linked table the password prompt comes up. Is there any way i can suppress this prompt by persisting the password for the odbc.

I will update the latest data to oracle table by using something like this
Insert into Linkedtable Select * from LatestUpdatesQuery

where LatestUpdatesQuery is a access query is created to get the latest records from last updates
Jan 15 '10 #3
any ideas on this ???
Jan 18 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
0
by: Phil | last post by:
My mission is to get some data out of a sage application, via a very complicated query, into a csv file. My approach, so far, has been 1) link access tables to the sage application 2) build...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
0
by: Chris Naylor | last post by:
Right, further to previous question not so long ago... I have a fairly complex access database that has a number of linked tables in it. The main table of this database is a details one that has...
14
by: Mike | last post by:
I had a question about threading and access to private class variables. I am developing a windows service which has a class inside of it which will receive various asynchronous calls to it via...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
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: 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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.