Solved

Linked Oracle table refresh question

Posted on 2009-05-14
1
246 Views
Last Modified: 2012-05-07
In my Access form, it's linked to an Oracle table, seems only when I close the access form, the current records are saved to Oracle table (they are linked), how to force save or synchronize the linked table? Thanks.
0
Comment
Question by:heyday2004
1 Comment
 
LVL 2

Accepted Solution

by:
michael1174 earned 500 total points
ID: 24388266
On your save button add:
    DoCmd.RunCommand acCmdSaveRecord
    Me.Dirty = False

On your exit button add:
If Me.Dirty = False Then
    DoCmd.Close acForm, "frmEdit", acSaveNo
ElseIf MsgBox("Save Changes?", vbYesNo, "Save") = vbNo Then
    If Me.Dirty = True Then
        Me.Undo
    End If
    DoCmd.Close acForm, "frmEdit", acSaveNo
Else
        DoCmd.Close acForm, "frmEdit", acSaveNo
End If

On your forms properties, set Close button to No.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now