?
Solved

Linked Oracle table refresh question

Posted on 2009-05-14
1
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
michael1174 earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

764 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