Microsoft
Software
Hardware
Network
Question : How to save record changes in a sub-form
Hi,
I set-up buttons on my main form to manipulate data in my sub-form datasheet. It's a standard set of buttons, such as MoveNext, MovePrevious, Add, Delete...etc.
Below is an example of MoveNext that I did. The only button I am still struggling with is Save Changes Button. Can you plesae help.
Private Sub cmdGoToNext_Click()
On Error GoTo Err_MyProc
Me.frmClient.Form.Recordse
t.MoveNext
Exit_MyProc:
'Deassign all objects.
Exit Sub
Err_MyProc:
'Error handler here
Select Case (Err.Number)
Case 3021
MsgBox "You reached the end of the list."
Case Else
MsgBox (Err.Description)
End Select
Resume Exit_MyProc
End Sub
Answer : How to save record changes in a sub-form
Changes are saved automatically when you move from one record to another or close the form. If you want to save without doing either of these a simple
me.refresh
in your save changes button should give the desired result.
Leigh
Random Solutions
Domain Controller time out of sync
reading text file into listbox and writing listbox items into a file at launching and exiting the application
Mototola Droid will not sync with Microsoft 2003 Exchange Server
Connecting a workstation to existing SBS 2003 network
Control Toolbox, Powerpoint 03
GLIBCXX_3.4.9' not found C++
Matching case in SQL
Public folder replication not working on Exchange 2007?
Paradox import into Access 2000. Error.....
SQL Server 2005 9.0.3077 - what version and SP is this?