Simple answer I'm sure

snicker

Registered User.
Local time
Today, 14:01
Joined
Aug 8, 2003
Messages
91
This is an example of a time tracking DB I'm building. This is the problem, after a record gets created it wont display after closing/reopening the form. There is probley a simple explanation. Thx in advance for any help.

Mike
 

Attachments

after update event

use after update event to refresh your form and set focus to form.
 
very nice. Worked like a charm.
 
Just curious...

snicker said:
very nice. Worked like a charm.

Do you "refresh / set focus" with a Macro? Can't find those actions. Or is it VBA? If so, what does the code look like please.
 
This is on an [event procedure] of a button so the user can refresh any time they want.
Code:
Private Sub btnRefresh_Click()
On Error GoTo Err_btnRefresh_Click


    DoCmd.Requery
Exit_btnRefresh_Click:
    Exit Sub

Err_btnRefresh_Click:
    MsgBox Err.Description
    Resume Exit_btnRefresh_Click
    
End Sub

But really all you need is this
Code:
DoCmd.Requery

hope that helps. Let me know if you need more info.

Mike
 

Users who are viewing this thread

Back
Top Bottom